]> granicus.if.org Git - transmission/commitdiff
wrap the dead parts of fastresume.c in #if 0 blocks
authorCharles Kerr <charles@transmissionbt.com>
Mon, 14 Apr 2008 15:32:28 +0000 (15:32 +0000)
committerCharles Kerr <charles@transmissionbt.com>
Mon, 14 Apr 2008 15:32:28 +0000 (15:32 +0000)
libtransmission/fastresume.c
libtransmission/fastresume.h

index 3ec23417a13f5d77effeafa3af699444358f9fa7..cb12dd33f6b7371087b8eaf0b772f24c06295f9f 100644 (file)
@@ -121,6 +121,7 @@ enum
   ( FR_MTIME_LEN( t ) + FR_BLOCK_BITFIELD_LEN( t ) )
 #define FR_SPEED_LEN (2 * (sizeof(uint16_t) + sizeof(uint8_t) ) )
 
+#if 0
 static void
 fastResumeFileName( char * buf, size_t buflen, const tr_torrent * tor, int tag )
 {
@@ -138,6 +139,7 @@ fastResumeFileName( char * buf, size_t buflen, const tr_torrent * tor, int tag )
         tr_buildPath( buf, buflen, cacheDir, base, NULL );
     }
 }
+#endif
 
 static tr_time_t*
 getMTimes( const tr_torrent * tor, int * setme_n )
@@ -164,6 +166,7 @@ getMTimes( const tr_torrent * tor, int * setme_n )
     return m;
 }
 
+#if 0
 static void
 fastResumeWriteData( uint8_t       id,
                      const void  * data,
@@ -325,6 +328,7 @@ tr_fastResumeSave( const tr_torrent * tor )
 
     fclose( file );
 }
+#endif
 
 /***
 ****
index b62cf231b316254c148187ac70601d4433f45d4a..ce2c1e31b142dd6e1bbb19580e5fe8e0346c3f1a 100644 (file)
@@ -25,8 +25,6 @@
 #ifndef TR_FAST_RESUME_H
 #define TR_FAST_RESUME_H
 
-void tr_fastResumeSave( const tr_torrent * tor );
-
 /**
  * Returns a bitwise-or'ed set of the data loaded from fastresume
  */