(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; 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 void
tr_peerMgrTorrentStats( tr_torrent * tor, tr_peerMgrTorrentStats( tr_torrent * tor,
int * setmePeersKnown, int * setmePeersKnown,

View File

@ -156,9 +156,6 @@ void tr_peerMgrTorrentAvailability( const tr_torrent * tor,
struct tr_bitfield* tr_peerMgrGetAvailable( 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, void tr_peerMgrTorrentStats( tr_torrent * tor,
int * setmePeersKnown, int * setmePeersKnown,
int * setmePeersConnected, int * setmePeersConnected,