(trunk libT) remove unnecessary memmove()s from rechokeDownloads()

This commit is contained in:
Jordan Lee 2011-04-05 00:24:25 +00:00
parent 17894f258c
commit 492d208dc8
1 changed files with 4 additions and 1 deletions

View File

@ -2925,7 +2925,10 @@ rechokeDownloads( Torrent * t )
bad[badCount++] = peer; bad[badCount++] = peer;
} }
tr_removeElementFromArray( peers, i, sizeof(tr_peer*), n-- ); /* remove 'peer' from the array 'peers' */
if( i != n - 1 )
peers[i] = peers[n-1];
--n;
} }
tr_free( peers ); tr_free( peers );