1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 00:34:04 +00:00

(trunk libT) Remove tr_peerMgrHasConnections, it isn't used anywhere

This commit is contained in:
Charles Kerr 2009-01-14 01:37:24 +00:00
parent 2c1afe07a4
commit 7a91840639
2 changed files with 0 additions and 18 deletions

View file

@ -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,

View file

@ -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,