From: <fr...@us...> - 2009-09-01 13:05:59
|
Revision: 4077 http://fuse-emulator.svn.sourceforge.net/fuse-emulator/?rev=4077&view=rev Author: fredm Date: 2009-09-01 13:05:45 +0000 (Tue, 01 Sep 2009) Log Message: ----------- Remove unused uncompressed variable. Modified Paths: -------------- trunk/libspectrum/hacking/ChangeLog trunk/libspectrum/rzx.c trunk/libspectrum/snapshot.c trunk/libspectrum/tape.c Modified: trunk/libspectrum/hacking/ChangeLog =================================================================== --- trunk/libspectrum/hacking/ChangeLog 2009-09-01 11:49:17 UTC (rev 4076) +++ trunk/libspectrum/hacking/ChangeLog 2009-09-01 13:05:45 UTC (rev 4077) @@ -737,3 +737,4 @@ (Fred & Gergely). 20090901 dck.c,rzx.c,snapshot.c,tape.c: give up if file decompression fails (Fred). +20090901 rzx.c,snapshot.c,tape.c: remove unused uncompressed variable (Fred). Modified: trunk/libspectrum/rzx.c =================================================================== --- trunk/libspectrum/rzx.c 2009-09-01 11:49:17 UTC (rev 4076) +++ trunk/libspectrum/rzx.c 2009-09-01 13:05:45 UTC (rev 4077) @@ -671,13 +671,12 @@ { libspectrum_error error; const libspectrum_byte *ptr, *end; - int uncompressed; libspectrum_byte *new_buffer; libspectrum_id_t raw_type; libspectrum_class_t class; /* Find out if this file needs decompression */ - uncompressed = 0; new_buffer = NULL; + new_buffer = NULL; error = libspectrum_identify_file_raw( &raw_type, NULL, buffer, length ); if( error ) return error; @@ -693,7 +692,6 @@ raw_type, buffer, length, NULL ); if( error ) return error; buffer = new_buffer; length = new_length; - uncompressed = 1; } ptr = buffer; end = buffer + length; Modified: trunk/libspectrum/snapshot.c =================================================================== --- trunk/libspectrum/snapshot.c 2009-09-01 11:49:17 UTC (rev 4076) +++ trunk/libspectrum/snapshot.c 2009-09-01 13:05:45 UTC (rev 4077) @@ -262,7 +262,6 @@ libspectrum_class_t class; libspectrum_byte *new_buffer; libspectrum_error error; - int uncompressed; /* If we don't know what sort of file this is, make a best guess */ if( type == LIBSPECTRUM_ID_UNKNOWN ) { @@ -289,7 +288,7 @@ } /* Find out if this file needs decompression */ - uncompressed = 0; new_buffer = NULL; + new_buffer = NULL; error = libspectrum_identify_file_raw( &raw_type, filename, buffer, length ); if( error ) return error; @@ -305,7 +304,6 @@ raw_type, buffer, length, NULL ); if( error ) return error; buffer = new_buffer; length = new_length; - uncompressed = 1; } switch( type ) { Modified: trunk/libspectrum/tape.c =================================================================== --- trunk/libspectrum/tape.c 2009-09-01 11:49:17 UTC (rev 4076) +++ trunk/libspectrum/tape.c 2009-09-01 13:05:45 UTC (rev 4077) @@ -164,7 +164,6 @@ libspectrum_class_t class; libspectrum_byte *new_buffer; libspectrum_error error; - int uncompressed; /* If we don't know what sort of file this is, make a best guess */ if( type == LIBSPECTRUM_ID_UNKNOWN ) { @@ -182,7 +181,7 @@ } /* Find out if this file needs decompression */ - uncompressed = 0; new_buffer = NULL; + new_buffer = NULL; error = libspectrum_identify_file_raw( &raw_type, filename, buffer, length ); if( error ) return error; @@ -198,7 +197,6 @@ raw_type, buffer, length, NULL ); if( error ) return error; buffer = new_buffer; length = new_length; - uncompressed = 1; } switch( type ) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |