Removing the now useless cuckoo function and shrink the call stack entries accordingly

svn-id: r41758
This commit is contained in:
Sven Hesse 2009-06-22 10:16:17 +00:00
parent b6a26911a3
commit 648139dda7
2 changed files with 0 additions and 15 deletions

View File

@ -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;
}
}

View File

@ -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;
};