aboutsummaryrefslogtreecommitdiff
path: root/engines/sludge/loadsave.cpp
diff options
context:
space:
mode:
authorSimei Yin2017-07-15 17:33:10 +0200
committerSimei Yin2017-07-15 17:51:57 +0200
commita3876ee8c1bf43ad998681188f83266a85ab64b8 (patch)
treeed4d3a81bb66580677fd9d673e8f27a4b5a41931 /engines/sludge/loadsave.cpp
parent8c57d2d82540d1b7656375c808812ac4cba9d232 (diff)
downloadscummvm-rg350-a3876ee8c1bf43ad998681188f83266a85ab64b8.tar.gz
scummvm-rg350-a3876ee8c1bf43ad998681188f83266a85ab64b8.tar.bz2
scummvm-rg350-a3876ee8c1bf43ad998681188f83266a85ab64b8.zip
SLUDGE: Clean useless #if 0's
Diffstat (limited to 'engines/sludge/loadsave.cpp')
-rw-r--r--engines/sludge/loadsave.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/engines/sludge/loadsave.cpp b/engines/sludge/loadsave.cpp
index 3ab1b13d85..0757067af2 100644
--- a/engines/sludge/loadsave.cpp
+++ b/engines/sludge/loadsave.cpp
@@ -109,8 +109,6 @@ void saveStack(variableStack *vs, Common::WriteStream *stream) {
search = search->next;
}
- stackDebug((stackfp, " stack contains %d elements\n", elements));
-
stream->writeUint16BE(elements);
search = vs;
for (a = 0; a < elements; a++) {
@@ -131,7 +129,6 @@ variableStack *loadStack(Common::SeekableReadStream *stream, variableStack **las
return NULL;
loadVariable(&(nS->thisVar), stream);
if (last && a == elements - 1) {
- stackDebug((stackfp, "Setting last to %p\n", nS));
*last = nS;
}
nS->next = NULL;
@@ -189,13 +186,9 @@ stackHandler *loadStackRef(Common::SeekableReadStream *stream) {
stackHandler *nsh;
if (stream->readByte()) { // It's one we've loaded already...
- stackDebug((stackfp, "loadStackRef (duplicate, get from library)\n"));
-
nsh = getStackFromLibrary(stream->readUint16BE());
nsh->timesUsed++;
} else {
- stackDebug((stackfp, "loadStackRef (new one)\n"));
-
// Load the new stack
nsh = new stackHandler;
@@ -204,12 +197,6 @@ stackHandler *loadStackRef(Common::SeekableReadStream *stream) {
nsh->last = NULL;
nsh->first = loadStack(stream, &nsh->last);
nsh->timesUsed = 1;
- stackDebug((stackfp, " first = %p\n", nsh->first));
- if (nsh->first)
- stackDebug((stackfp, " first->next = %p\n", nsh->first->next));
- stackDebug((stackfp, " last = %p\n", nsh->last));
- if (nsh->last)
- stackDebug((stackfp, " last->next = %p\n", nsh->last->next));
// Add it to the library of loaded stacks