[Scummvm-cvs-logs] SF.net SVN: scummvm:[41758] scummvm/trunk/engines/gob

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Mon Jun 22 12:16:20 CEST 2009


Revision: 41758
          http://scummvm.svn.sourceforge.net/scummvm/?rev=41758&view=rev
Author:   drmccoy
Date:     2009-06-22 10:16:17 +0000 (Mon, 22 Jun 2009)

Log Message:
-----------
Removing the now useless cuckoo function and shrink the call stack entries accordingly

Modified Paths:
--------------
    scummvm/trunk/engines/gob/script.cpp
    scummvm/trunk/engines/gob/script.h

Modified: scummvm/trunk/engines/gob/script.cpp
===================================================================
--- scummvm/trunk/engines/gob/script.cpp	2009-06-22 10:15:52 UTC (rev 41757)
+++ scummvm/trunk/engines/gob/script.cpp	2009-06-22 10:16:17 UTC (rev 41758)
@@ -366,19 +366,10 @@
 	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 @@
 	CallEntry lastCall = _callStack.pop();
 
 	if (ret) {
-		_totData = lastCall.totData;
 		_totPtr = lastCall.totPtr;
-		_totSize = lastCall.totSize;
 		_finished = lastCall.finished;
 	}
 }

Modified: scummvm/trunk/engines/gob/script.h
===================================================================
--- scummvm/trunk/engines/gob/script.h	2009-06-22 10:15:52 UTC (rev 41757)
+++ scummvm/trunk/engines/gob/script.h	2009-06-22 10:16:17 UTC (rev 41758)
@@ -88,8 +88,6 @@
 	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 @@
 
 private:
 	struct CallEntry {
-		byte *totData;
 		byte *totPtr;
-		uint32 totSize;
 		bool finished;
 	};
 


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list