[Scummvm-cvs-logs] SF.net SVN: scummvm:[46237] tools/branches/gsoc2009-gui/ extract_parallaction.cpp

peres001 at users.sourceforge.net peres001 at users.sourceforge.net
Wed Dec 2 02:15:34 CET 2009


Revision: 46237
          http://scummvm.svn.sourceforge.net/scummvm/?rev=46237&view=rev
Author:   peres001
Date:     2009-12-02 01:15:34 +0000 (Wed, 02 Dec 2009)

Log Message:
-----------
Removed leftover debug stuff from previous commit.

Modified Paths:
--------------
    tools/branches/gsoc2009-gui/extract_parallaction.cpp

Modified: tools/branches/gsoc2009-gui/extract_parallaction.cpp
===================================================================
--- tools/branches/gsoc2009-gui/extract_parallaction.cpp	2009-12-02 01:12:09 UTC (rev 46236)
+++ tools/branches/gsoc2009-gui/extract_parallaction.cpp	2009-12-02 01:15:34 UTC (rev 46237)
@@ -69,8 +69,6 @@
 	return _fileSize;
 }
 
-static int __count;
-
 void Archive::openSubfile(uint32 index) {
 	if (index >= _numFiles)
 		throw ToolException("File index out of bounds.");
@@ -88,14 +86,8 @@
 		_fileSize = getSizeOfPackedSubfile(srcData, srcSize);
 		_fileData = (byte *)malloc(_fileSize);
 
-		printf("unpacking file at position %i: %s [%x]\n", index, _names[index], srcOffset);
-		printf("packed size    = %i\n", srcSize);
-		printf("unpacked size  = %i\n", _fileSize);
-
 		unpackSubfile(srcData, srcSize);
 
-		printf("unpacked bytes = %i\n", __count);
-
 		free(srcData);
 	} else {
 		_fileSize = srcSize;
@@ -229,8 +221,6 @@
 }
 
 void ppdepack(byte *packed, byte *depacked, uint32 plen, uint32 unplen) {
-	__count = 0;
-
 	byte *dest;
 	int n_bits;
 	int idx;
@@ -266,8 +256,6 @@
 				bytes += to_add;
 			} while (to_add == 3);
 
-			__count += (bytes+1);
-
 			for (i = 0; i <= bytes; i++)
 				*--dest = get_bits(8);
 
@@ -295,8 +283,6 @@
 			offset = get_bits(n_bits);
 		}
 
-		__count += (bytes+1);
-
 		for (i = 0; i <= bytes; i++) {
 			dest[-1] = dest[offset];
 			dest--;


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