(trunk libT) Remove tr_peerMgrHasConnections, it isn't used anywhere
This commit is contained in:
parent
2c1afe07a4
commit
7a91840639
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue