mirror of
https://github.com/transmission/transmission
synced 2024-12-24 16:52:39 +00:00
(trunk libT) Remove tr_peerMgrHasConnections, it isn't used anywhere
This commit is contained in:
parent
2c1afe07a4
commit
7a91840639
2 changed files with 0 additions and 18 deletions
|
@ -1659,21 +1659,6 @@ tr_peerMgrGetAvailable( const tr_torrent * tor )
|
|||
return pieces;
|
||||
}
|
||||
|
||||
int
|
||||
tr_peerMgrHasConnections( const tr_peerMgr * manager,
|
||||
const uint8_t * torrentHash )
|
||||
{
|
||||
int ret;
|
||||
const Torrent * t;
|
||||
managerLock( manager );
|
||||
|
||||
t = getExistingTorrent( (tr_peerMgr*)manager, torrentHash );
|
||||
ret = t && ( !tr_ptrArrayEmpty( &t->peers ) || !tr_ptrArrayEmpty( &t->webseeds ) );
|
||||
|
||||
managerUnlock( manager );
|
||||
return ret;
|
||||
}
|
||||
|
||||
void
|
||||
tr_peerMgrTorrentStats( tr_torrent * tor,
|
||||
int * setmePeersKnown,
|
||||
|
|
|
@ -156,9 +156,6 @@ void tr_peerMgrTorrentAvailability( const tr_torrent * tor,
|
|||
|
||||
struct tr_bitfield* tr_peerMgrGetAvailable( const tr_torrent * tor );
|
||||
|
||||
int tr_peerMgrHasConnections( const tr_peerMgr * manager,
|
||||
const uint8_t * torrentHash );
|
||||
|
||||
void tr_peerMgrTorrentStats( tr_torrent * tor,
|
||||
int * setmePeersKnown,
|
||||
int * setmePeersConnected,
|
||||
|
|
Loading…
Reference in a new issue