1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-04 10:38:13 +00:00

(trunk libT) remove dead function tr_torrentPromoteTracker()

This commit is contained in:
Charles Kerr 2010-05-19 18:23:47 +00:00
parent 7936f0d5d1
commit 8a83a4bf79
2 changed files with 0 additions and 35 deletions

View file

@ -531,38 +531,6 @@ tr_torrentInitFilePieces( tr_torrent * tor )
tr_free( firstFiles );
}
int
tr_torrentPromoteTracker( tr_torrent * tor,
int pos )
{
int i;
int tier;
assert( tor );
assert( ( 0 <= pos ) && ( pos < tor->info.trackerCount ) );
/* the tier of the tracker we're promoting */
tier = tor->info.trackers[pos].tier;
/* find the index of that tier's first tracker */
for( i = 0; i < tor->info.trackerCount; ++i )
if( tor->info.trackers[i].tier == tier )
break;
assert( i < tor->info.trackerCount );
/* promote the tracker at `pos' to the front of the tier */
if( i != pos )
{
const tr_tracker_info tmp = tor->info.trackers[i];
tor->info.trackers[i] = tor->info.trackers[pos];
tor->info.trackers[pos] = tmp;
}
/* return the new position of the tracker that started out at [pos] */
return i;
}
static void torrentStart( tr_torrent * tor );
/**

View file

@ -101,9 +101,6 @@ void tr_torrentSetFileChecked( tr_torrent * tor,
void tr_torrentUncheck( tr_torrent * tor );
int tr_torrentPromoteTracker( tr_torrent * tor,
int trackerIndex );
time_t* tr_torrentGetMTimes( const tr_torrent * tor,
size_t * setmeCount );