HDB: Remove non-functioning code

This commit is contained in:
Eugene Sandulenko 2019-07-09 23:20:39 +02:00
parent 6fe1d65ca7
commit d0b5e0fbc7

View File

@ -1206,11 +1206,6 @@ static int openFile(lua_State *L) {
lua_pop(L, 2);
if (!scumm_stricmp(mode, "wt")) {
// Delete Lua Save File
Common::InSaveFile *inLua = g_system->getSavefileManager()->openForLoading(fName);
if (inLua)
delete inLua;
Common::OutSaveFile *outLua = g_system->getSavefileManager()->openForSaving(fName);
if (!outLua)
error("Cannot open %s", fName);