mirror of
https://github.com/transmission/transmission.git
synced 2025-12-25 04:45:56 +00:00
(trunk libT) make tr_torrentDeleteLocalData() a private function
This commit is contained in:
@@ -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 ) );
|
||||
|
||||
@@ -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 );
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user