diff --git a/libtransmission/fastresume.c b/libtransmission/fastresume.c index a806e4825..c183dcbb7 100644 --- a/libtransmission/fastresume.c +++ b/libtransmission/fastresume.c @@ -404,15 +404,3 @@ fastResumeLoad( tr_torrent_t * tor, return ret; } - -void -fastResumeRemove( tr_torrent_t * tor ) -{ - char file[MAX_PATH_LENGTH]; - fastResumeFileName( file, sizeof file, tor, NULL != tor->handle->tag ); - - if ( unlink( file ) ) - { - tr_inf( "Removing fast resume file failed" ); - } -} diff --git a/libtransmission/fastresume.h b/libtransmission/fastresume.h index 8cb915255..4fe42e4d4 100644 --- a/libtransmission/fastresume.h +++ b/libtransmission/fastresume.h @@ -30,6 +30,4 @@ void fastResumeSave( const tr_torrent_t * tor ); int fastResumeLoad( tr_torrent_t * tor, tr_bitfield_t * uncheckedPieces ); -void fastResumeRemove( tr_torrent_t * tor ); - #endif diff --git a/libtransmission/inout.c b/libtransmission/inout.c index 87281d3ec..bc3b13608 100644 --- a/libtransmission/inout.c +++ b/libtransmission/inout.c @@ -303,12 +303,6 @@ tr_ioLoadResume( tr_torrent_t * tor ) return tr_ioCheckFiles ( tor, TR_RECHECK_FAST ); } -void tr_ioRemoveResume( tr_torrent_t * tor ) -{ - if( !tor->io ) - fastResumeRemove( tor ); -} - int tr_ioHash( tr_io_t * io, int pieceIndex ) { diff --git a/libtransmission/inout.h b/libtransmission/inout.h index 29dc5b149..198d45b06 100644 --- a/libtransmission/inout.h +++ b/libtransmission/inout.h @@ -28,7 +28,6 @@ typedef struct tr_io_s tr_io_t; int tr_ioLoadResume ( tr_torrent_t * ); -void tr_ioRemoveResume( tr_torrent_t * ); enum