From ac22f75caff5e1406bcf554e61d0b56331b08e9a Mon Sep 17 00:00:00 2001 From: Ingo Ruhnke Date: Thu, 14 Aug 2014 07:18:59 +0200 Subject: [PATCH] Removed unneeded code, sq_newslot() will override a given slot, a separate sq_deleteslot() isn't needed --- src/supertux/savegame.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/supertux/savegame.cpp b/src/supertux/savegame.cpp index 4119a2dd4..18e80c0d4 100644 --- a/src/supertux/savegame.cpp +++ b/src/supertux/savegame.cpp @@ -256,12 +256,6 @@ Savegame::clear_state_table() // delete existing state table, if it exists sq_pushroottable(vm); { - /*sq_pushstring(vm, "state", -1); - if(SQ_FAILED(sq_deleteslot(vm, -2, SQFalse))) - { - sq_pop(vm, 1); - }*/ - // create a new empty state table sq_pushstring(vm, "state", -1); sq_newtable(vm); -- 2.11.0