From 648139dda7e759ebc2ee8d45301698c8b447a63d Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Mon, 22 Jun 2009 10:16:17 +0000 Subject: Removing the now useless cuckoo function and shrink the call stack entries accordingly svn-id: r41758 --- engines/gob/script.cpp | 11 ----------- engines/gob/script.h | 4 ---- 2 files changed, 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; }; -- cgit v1.2.3