diff options
author | Filippos Karapetis | 2015-01-09 00:38:15 +0200 |
---|---|---|
committer | Filippos Karapetis | 2015-01-09 00:38:15 +0200 |
commit | 345b33d9f0ea971e0ca69f1165d9d3b69d67984c (patch) | |
tree | 1e459f873de81c6bbe8424ec89ff4c6b01cdf6b5 /engines | |
parent | 9e1510e715465db8930d8d241bdad2ca6020326d (diff) | |
download | scummvm-rg350-345b33d9f0ea971e0ca69f1165d9d3b69d67984c.tar.gz scummvm-rg350-345b33d9f0ea971e0ca69f1165d9d3b69d67984c.tar.bz2 scummvm-rg350-345b33d9f0ea971e0ca69f1165d9d3b69d67984c.zip |
ZVISION: Remove dead code
Diffstat (limited to 'engines')
-rw-r--r-- | engines/zvision/file/save_manager.cpp | 27 | ||||
-rw-r--r-- | engines/zvision/file/save_manager.h | 1 |
2 files changed, 0 insertions, 28 deletions
diff --git a/engines/zvision/file/save_manager.cpp b/engines/zvision/file/save_manager.cpp index 042fafd38e..022b08884f 100644 --- a/engines/zvision/file/save_manager.cpp +++ b/engines/zvision/file/save_manager.cpp @@ -162,33 +162,6 @@ Common::Error SaveManager::loadGame(uint slot) { return Common::kNoError; } -Common::Error SaveManager::loadGame(const Common::String &saveName) { - Common::File *saveFile = _engine->getSearchManager()->openFile(saveName); - if (saveFile == NULL) { - saveFile = new Common::File; - if (!saveFile->open(saveName)) { - delete saveFile; - return Common::kPathDoesNotExist; - } - } - - // Read the header - SaveGameHeader header; - if (!readSaveGameHeader(saveFile, header)) { - return Common::kUnknownError; - } - - ScriptManager *scriptManager = _engine->getScriptManager(); - // Update the state table values - scriptManager->deserialize(saveFile); - - delete saveFile; - if (header.thumbnail) - delete header.thumbnail; - - return Common::kNoError; -} - bool SaveManager::readSaveGameHeader(Common::InSaveFile *in, SaveGameHeader &header) { uint32 tag = in->readUint32BE(); // Check if it's original savegame than fill header structure diff --git a/engines/zvision/file/save_manager.h b/engines/zvision/file/save_manager.h index fc8db67566..516d0e75cd 100644 --- a/engines/zvision/file/save_manager.h +++ b/engines/zvision/file/save_manager.h @@ -93,7 +93,6 @@ public: * @param slot The save slot to load. Must be [1, 20] */ Common::Error loadGame(uint slot); - Common::Error loadGame(const Common::String &saveName); Common::SeekableReadStream *getSlotFile(uint slot); bool readSaveGameHeader(Common::SeekableReadStream *in, SaveGameHeader &header); |