Changeset 10663


Ignore:
Timestamp:
May 19, 2010, 6:23:47 PM (12 years ago)
Author:
charles
Message:

(trunk libT) remove dead function tr_torrentPromoteTracker()

Location:
trunk/libtransmission
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/torrent.c

    r10662 r10663  
    532532}
    533533
    534 int
    535 tr_torrentPromoteTracker( tr_torrent * tor,
    536                           int          pos )
    537 {
    538     int i;
    539     int tier;
    540 
    541     assert( tor );
    542     assert( ( 0 <= pos ) && ( pos < tor->info.trackerCount ) );
    543 
    544     /* the tier of the tracker we're promoting */
    545     tier = tor->info.trackers[pos].tier;
    546 
    547     /* find the index of that tier's first tracker */
    548     for( i = 0; i < tor->info.trackerCount; ++i )
    549         if( tor->info.trackers[i].tier == tier )
    550             break;
    551 
    552     assert( i < tor->info.trackerCount );
    553 
    554     /* promote the tracker at `pos' to the front of the tier */
    555     if( i != pos )
    556     {
    557         const tr_tracker_info tmp = tor->info.trackers[i];
    558         tor->info.trackers[i] = tor->info.trackers[pos];
    559         tor->info.trackers[pos] = tmp;
    560     }
    561 
    562     /* return the new position of the tracker that started out at [pos] */
    563     return i;
    564 }
    565 
    566534static void torrentStart( tr_torrent * tor );
    567535
  • trunk/libtransmission/torrent.h

    r10643 r10663  
    101101
    102102void             tr_torrentUncheck( tr_torrent * tor );
    103 
    104 int              tr_torrentPromoteTracker( tr_torrent   * tor,
    105                                            int            trackerIndex );
    106103
    107104time_t*          tr_torrentGetMTimes( const tr_torrent  * tor,
Note: See TracChangeset for help on using the changeset viewer.