(trunk libT) make tr_torrentDeleteLocalData() a private function

This commit is contained in:
Charles Kerr
2010-12-16 03:41:46 +00:00
parent 3f20d52371
commit 3e848396bb
2 changed files with 3 additions and 10 deletions

View File

@@ -1757,6 +1757,8 @@ struct remove_data
tr_fileFunc * deleteFunc;
};
static void tr_torrentDeleteLocalData( tr_torrent *, tr_fileFunc );
static void
removeTorrent( void * vdata )
{
@@ -2714,7 +2716,7 @@ deleteLocalData( tr_torrent * tor, tr_fileFunc fileFunc )
tr_free( tmp );
}
void
static void
tr_torrentDeleteLocalData( tr_torrent * tor, tr_fileFunc fileFunc )
{
assert( tr_isTorrent( tor ) );

View File

@@ -1065,15 +1065,6 @@ void tr_torrentSetLocation( tr_torrent * torrent,
double * setme_progress,
int * setme_state );
/**
* @brief Deletes the torrent's local data.
* @param torrent
* @param fileFunc Pass in "unlink" to destroy the files or, on platforms with
* recycle bins, pass in a function that uses it instead.
* tr_torrentDeleteLocalData() ignores fileFunc's return value.
*/
void tr_torrentDeleteLocalData( tr_torrent * torrent, tr_fileFunc fileFunc );
uint64_t tr_torrentGetBytesLeftToAllocate( const tr_torrent * torrent );
/**