From 5a7dbc3666b29a4bde5673fe20a85e68d02b6c56 Mon Sep 17 00:00:00 2001 From: Martin Kiewitz Date: Sun, 26 Apr 2015 09:10:25 +0200 Subject: SCI: remove unused code in SciEngine::loadGameState() --- engines/sci/detection.cpp | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'engines') diff --git a/engines/sci/detection.cpp b/engines/sci/detection.cpp index 604aa476a2..9a41127f6d 100644 --- a/engines/sci/detection.cpp +++ b/engines/sci/detection.cpp @@ -794,23 +794,6 @@ Common::Error SciEngine::loadGameState(int slot) { _gamestate->_delayedRestoreGameId = slot; _gamestate->_delayedRestoreGame = true; return Common::kNoError; - - Common::String fileName = Common::String::format("%s.%03d", _targetName.c_str(), slot); - Common::SaveFileManager *saveFileMan = g_engine->getSaveFileManager(); - Common::SeekableReadStream *in = saveFileMan->openForLoading(fileName); - - if (in) { - // found a savegame file - gamestate_restore(_gamestate, in); - delete in; - } - - if (_gamestate->r_acc != make_reg(0, 1)) { - return Common::kNoError; - } else { - warning("Restoring gamestate '%s' failed", fileName.c_str()); - return Common::kUnknownError; - } } Common::Error SciEngine::saveGameState(int slot, const Common::String &desc) { -- cgit v1.2.3