mirror of
https://github.com/transmission/transmission
synced 2025-03-20 10:45:43 +00:00
remove unused functions tr_ioRemoveResume() and fastResumeRemove()
This commit is contained in:
parent
9c73ecbf63
commit
8d37a2601e
4 changed files with 0 additions and 21 deletions
|
@ -404,15 +404,3 @@ fastResumeLoad( tr_torrent_t * tor,
|
||||||
|
|
||||||
return ret;
|
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" );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
|
@ -30,6 +30,4 @@ void fastResumeSave( const tr_torrent_t * tor );
|
||||||
int fastResumeLoad( tr_torrent_t * tor,
|
int fastResumeLoad( tr_torrent_t * tor,
|
||||||
tr_bitfield_t * uncheckedPieces );
|
tr_bitfield_t * uncheckedPieces );
|
||||||
|
|
||||||
void fastResumeRemove( tr_torrent_t * tor );
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -303,12 +303,6 @@ tr_ioLoadResume( tr_torrent_t * tor )
|
||||||
return tr_ioCheckFiles ( tor, TR_RECHECK_FAST );
|
return tr_ioCheckFiles ( tor, TR_RECHECK_FAST );
|
||||||
}
|
}
|
||||||
|
|
||||||
void tr_ioRemoveResume( tr_torrent_t * tor )
|
|
||||||
{
|
|
||||||
if( !tor->io )
|
|
||||||
fastResumeRemove( tor );
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
tr_ioHash( tr_io_t * io, int pieceIndex )
|
tr_ioHash( tr_io_t * io, int pieceIndex )
|
||||||
{
|
{
|
||||||
|
|
|
@ -28,7 +28,6 @@
|
||||||
typedef struct tr_io_s tr_io_t;
|
typedef struct tr_io_s tr_io_t;
|
||||||
|
|
||||||
int tr_ioLoadResume ( tr_torrent_t * );
|
int tr_ioLoadResume ( tr_torrent_t * );
|
||||||
void tr_ioRemoveResume( tr_torrent_t * );
|
|
||||||
|
|
||||||
|
|
||||||
enum
|
enum
|
||||||
|
|
Loading…
Add table
Reference in a new issue