Changeset 7712


Ignore:
Timestamp:
Jan 14, 2009, 1:37:24 AM (12 years ago)
Author:
charles
Message:

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

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r7710 r7712  
    16601660}
    16611661
    1662 int
    1663 tr_peerMgrHasConnections( const tr_peerMgr * manager,
    1664                           const uint8_t *    torrentHash )
    1665 {
    1666     int ret;
    1667     const Torrent * t;
    1668     managerLock( manager );
    1669 
    1670     t = getExistingTorrent( (tr_peerMgr*)manager, torrentHash );
    1671     ret = t && ( !tr_ptrArrayEmpty( &t->peers ) || !tr_ptrArrayEmpty( &t->webseeds ) );
    1672 
    1673     managerUnlock( manager );
    1674     return ret;
    1675 }
    1676 
    16771662void
    16781663tr_peerMgrTorrentStats( tr_torrent       * tor,
  • trunk/libtransmission/peer-mgr.h

    r7710 r7712  
    157157struct tr_bitfield* tr_peerMgrGetAvailable( const tr_torrent * tor );
    158158
    159 int tr_peerMgrHasConnections( const tr_peerMgr * manager,
    160                               const uint8_t    * torrentHash );
    161 
    162159void tr_peerMgrTorrentStats( tr_torrent * tor,
    163160                             int * setmePeersKnown,
Note: See TracChangeset for help on using the changeset viewer.