From: Ingo Ruhnke Date: Thu, 14 Aug 2014 05:18:59 +0000 (+0200) Subject: Removed unneeded code, sq_newslot() will override a given slot, a separate sq_deletes... X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ac22f75caff5e1406bcf554e61d0b56331b08e9a;p=supertux.git Removed unneeded code, sq_newslot() will override a given slot, a separate sq_deleteslot() isn't needed --- 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);