diff --git a/libtransmission/torrent.c b/libtransmission/torrent.c index 73d99873c..cdf68a64d 100644 --- a/libtransmission/torrent.c +++ b/libtransmission/torrent.c @@ -2084,7 +2084,7 @@ tr_torrentSetAnnounceList( tr_torrent * tor, const tr_tracker_info * trackers, int trackerCount ) { - int i, j; + int i; tr_benc metainfo; assert( tr_isTorrent( tor ) ); @@ -2094,12 +2094,6 @@ tr_torrentSetAnnounceList( tr_torrent * tor, if( !tr_httpIsValidURL( trackers[i].announce ) ) return TR_ANNOUNCE_LIST_HAS_BAD; - /* look for duplicates */ - for( i=0; iinfo.torrent ) ) { diff --git a/libtransmission/transmission.h b/libtransmission/transmission.h index 62dc4fcf1..0c440b4a3 100644 --- a/libtransmission/transmission.h +++ b/libtransmission/transmission.h @@ -1202,7 +1202,6 @@ tr_tracker_info; typedef enum { TR_ANNOUNCE_LIST_OK, - TR_ANNOUNCE_LIST_HAS_DUPLICATES, TR_ANNOUNCE_LIST_HAS_BAD } tr_announce_list_err;