Changeset 12034


Ignore:
Timestamp:
Feb 24, 2011, 3:50:09 PM (11 years ago)
Author:
jordan
Message:

(2.2x) backport r12002, r12007: dead code removal

Location:
branches/2.2x/libtransmission
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2x/libtransmission/bitfield.c

    r11709 r12034  
    5050{
    5151    memset( bitfield->bits, 0, bitfield->byteCount );
    52 }
    53 
    54 int
    55 tr_bitfieldIsEmpty( const tr_bitfield * bitfield )
    56 {
    57     size_t i;
    58 
    59     for( i = 0; i < bitfield->byteCount; ++i )
    60         if( bitfield->bits[i] )
    61             return 0;
    62 
    63     return 1;
    6452}
    6553
  • branches/2.2x/libtransmission/bitfield.h

    r11709 r12034  
    5858void         tr_bitfieldDifference( tr_bitfield *, const tr_bitfield * );
    5959
    60 int          tr_bitfieldIsEmpty( const tr_bitfield* );
    61 
    6260size_t       tr_bitfieldCountTrueBits( const tr_bitfield* );
    6361
  • branches/2.2x/libtransmission/peer-common.h

    r12030 r12034  
    4141    MAX_BLOCK_SIZE = ( 1024 * 16 )
    4242};
    43 
    44 typedef enum
    45 {
    46     TR_ADDREQ_OK = 0,
    47     TR_ADDREQ_FULL,
    48     TR_ADDREQ_DUPLICATE,
    49     TR_ADDREQ_MISSING,
    50     TR_ADDREQ_CLIENT_CHOKED
    51 }
    52 tr_addreq_t;
    5343
    5444/**
Note: See TracChangeset for help on using the changeset viewer.