diff options
author | Sven Hesse | 2009-06-22 10:16:17 +0000 |
---|---|---|
committer | Sven Hesse | 2009-06-22 10:16:17 +0000 |
commit | 648139dda7e759ebc2ee8d45301698c8b447a63d (patch) | |
tree | c775bab52b7867cb0d5463bcf641a95a1ec9cad4 | |
parent | b6a26911a3a65e47a56e97d5e43c3ec0ae3f825c (diff) | |
download | scummvm-rg350-648139dda7e759ebc2ee8d45301698c8b447a63d.tar.gz scummvm-rg350-648139dda7e759ebc2ee8d45301698c8b447a63d.tar.bz2 scummvm-rg350-648139dda7e759ebc2ee8d45301698c8b447a63d.zip |
Removing the now useless cuckoo function and shrink the call stack entries accordingly
svn-id: r41758
-rw-r--r-- | engines/gob/script.cpp | 11 | ||||
-rw-r--r-- | engines/gob/script.h | 4 |
2 files changed, 0 insertions, 15 deletions
diff --git a/engines/gob/script.cpp b/engines/gob/script.cpp index f4dca835b2..7ed27771f3 100644 --- a/engines/gob/script.cpp +++ b/engines/gob/script.cpp @@ -366,19 +366,10 @@ bool Script::isFinished() const { return _finished; } -void Script::cuckoo(byte *totData, uint32 totSize) { - _finished = false; - _totData = totData; - _totPtr = _totData; - _totSize = totSize; -} - void Script::push() { CallEntry currentCall; - currentCall.totData = _totData; currentCall.totPtr = _totPtr; - currentCall.totSize = _totSize; currentCall.finished = _finished; _callStack.push(currentCall); @@ -390,9 +381,7 @@ void Script::pop(bool ret) { CallEntry lastCall = _callStack.pop(); if (ret) { - _totData = lastCall.totData; _totPtr = lastCall.totPtr; - _totSize = lastCall.totSize; _finished = lastCall.finished; } } diff --git a/engines/gob/script.h b/engines/gob/script.h index 5c689bd991..d9826a6e83 100644 --- a/engines/gob/script.h +++ b/engines/gob/script.h @@ -88,8 +88,6 @@ public: void setFinished(bool finished); bool isFinished() const; - void cuckoo(byte *totData, uint32 totSize); - void push(); void pop(bool ret = true); void call(uint32 offset); @@ -106,9 +104,7 @@ public: private: struct CallEntry { - byte *totData; byte *totPtr; - uint32 totSize; bool finished; }; |