From 64bbaed3ede3de05f4381f32f7e702573785bb57 Mon Sep 17 00:00:00 2001 From: gamray Date: Mon, 13 May 2024 00:24:04 +0200 Subject: [PATCH] removed unusued code --- db/savedata.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/db/savedata.go b/db/savedata.go index 76879e3..2f1e23f 100644 --- a/db/savedata.go +++ b/db/savedata.go @@ -173,12 +173,6 @@ func UpdateAccountEggs(uuid []byte, eggs []defs.EggData) error { continue } - var buf bytes.Buffer - err := gob.NewEncoder(&buf).Encode(egg) - if err != nil { - return err - } - _, err = handle.Exec(`INSERT INTO eggs (uuid, owner, gachaType, hatchWaves, timestamp) VALUES (?, ?, ?, ?, ?) ON DUPLICATE KEY UPDATE hatchWaves = ?`,