Changeset 6618


Ignore:
Timestamp:
Aug 21, 2008, 8:39:57 PM (13 years ago)
Author:
charles
Message:

(libT) more dead code removal: tr_compareTime() and tr_compareDouble()

Location:
trunk/libtransmission
Files:
3 edited

Legend:

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

    r6616 r6618  
    15541554
    15551555static int
     1556tr_compareDouble( double a, double b )
     1557{
     1558    if( a < b ) return -1;
     1559    if( a > b ) return 1;
     1560    return 0;
     1561}
     1562
     1563static int
    15561564compareChoke( const void * va, const void * vb )
    15571565{
  • trunk/libtransmission/utils.c

    r6616 r6618  
    5555static tr_msg_list ** messageQueueTail = &messageQueue;
    5656
    57 void tr_msgInit( void )
     57void
     58tr_msgInit( void )
    5859{
    5960    if( !messageLock )
     
    327328int
    328329tr_compareUint64( uint64_t a, uint64_t b )
    329 {
    330     if( a < b ) return -1;
    331     if( a > b ) return 1;
    332     return 0;
    333 }
    334 
    335 int
    336 tr_compareDouble( double a, double b )
    337 {
    338     if( a < b ) return -1;
    339     if( a > b ) return 1;
    340     return 0;
    341 }
    342 
    343 int
    344 tr_compareTime( time_t a, time_t b )
    345330{
    346331    if( a < b ) return -1;
  • trunk/libtransmission/utils.h

    r6616 r6618  
    214214                   
    215215int tr_compareUint64( uint64_t a, uint64_t b );
    216 int tr_compareDouble( double a, double b );
    217 int tr_compareTime( time_t a, time_t b );
    218216
    219217int tr_strcmp( const void * a, const void * b );
Note: See TracChangeset for help on using the changeset viewer.