Changeset 6423


Ignore:
Timestamp:
Aug 1, 2008, 4:05:22 AM (13 years ago)
Author:
charles
Message:

dead code removal

File:
1 edited

Legend:

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

    r6415 r6423  
    15371537    unsigned int  doUnchoke     : 1;
    15381538    unsigned int  isInterested  : 1;
    1539     uint32_t rate;
    15401539    tr_peer * peer;
    15411540};
     
    15741573**/
    15751574
    1576 static int
    1577 getWeightedRate( const tr_peer * peer, int clientIsSeed )
    1578 {
    1579     return (int)( 10.0 * ( clientIsSeed ? peer->rateToPeer
    1580                                         : peer->rateToClient ) );
    1581 }
    1582 
    15831575static void
    15841576rechoke( Torrent * t )
     
    15871579    tr_peer ** peers = getConnectedPeers( t, &peerCount );
    15881580    struct ChokeData * choke = tr_new0( struct ChokeData, peerCount );
    1589     const int clientIsSeed = tr_torrentIsSeed( t->tor );
    15901581
    15911582    assert( torrentIsLocked( t ) );
     
    16011592            node->peer = peer;
    16021593            node->isInterested = peer->peerIsInterested;
    1603             node->rate = getWeightedRate( peer, clientIsSeed );
    16041594        }
    16051595    }
Note: See TracChangeset for help on using the changeset viewer.