Changeset 3256


Ignore:
Timestamp:
Oct 1, 2007, 3:41:42 PM (15 years ago)
Author:
charles
Message:

remove newly-unused field tr_peer_stat::isConnected

Location:
trunk/libtransmission
Files:
2 edited

Legend:

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

    r3255 r3256  
    13271327    {
    13281328        const tr_peer * peer = peers[i];
    1329         const int live = peer->io != NULL;
     1329        const struct peer_atom * atom = getExistingAtom( t, &peer->in_addr );
    13301330        tr_peer_stat * stat = ret + i;
    1331         const struct peer_atom * atom = getExistingAtom( t, &peer->in_addr );
    13321331
    13331332        tr_netNtop( &peer->in_addr, stat->addr, sizeof(stat->addr) );
     
    13361335        stat->client           = peer->client;
    13371336        stat->progress         = peer->progress;
    1338         stat->isConnected      = live ? 1 : 0;
    13391337        stat->isEncrypted      = tr_peerIoIsEncrypted( peer->io ) ? 1 : 0;
    13401338        stat->uploadToRate     = tr_peerIoGetRateToPeer( peer->io );
  • trunk/libtransmission/transmission.h

    r3220 r3256  
    706706    const char * client;
    707707   
    708     unsigned int isConnected   : 1;
    709708    unsigned int isEncrypted   : 1;
    710709    unsigned int isDownloading : 1;
Note: See TracChangeset for help on using the changeset viewer.