Ignore:
Timestamp:
Oct 20, 2007, 10:07:21 PM (15 years ago)
Author:
charles
Message:

remove dead code (TR_STATUS_ACTIVE, TR_STATUS_INACTIVE)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/torrents.c

    r3426 r3486  
    188188        const tr_stat  * st = tr_torrentStat( tor->tor );
    189189
    190         if( TR_STATUS_INACTIVE & st->status )
     190        if( !TR_STATUS_IS_ACTIVE( st->status ) )
    191191        {
    192192            tr_torrentStart( tor->tor );
     
    210210        const tr_stat  * st = tr_torrentStat( tor->tor );
    211211
    212         if( TR_STATUS_ACTIVE & st->status )
     212        if( TR_STATUS_IS_ACTIVE( st->status ) )
    213213        {
    214214            tr_torrentStop( tor->tor );
     
    840840                        inf->hashString, 2 * SHA_DIGEST_LENGTH, 1 );
    841841        tr_bencInitInt( tr_bencDictAdd( tor, "paused" ),
    842                         ( TR_STATUS_INACTIVE & st->status ? 1 : 0 ) );
     842                        !TR_STATUS_IS_ACTIVE( st->status ) );
    843843        tr_bencInitStr( tr_bencDictAdd( tor, "directory" ),
    844844                        tr_torrentGetFolder( ii->tor ), -1, 1 );
Note: See TracChangeset for help on using the changeset viewer.