mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
(libT) more dead code removal: tr_compareTime() and tr_compareDouble()
This commit is contained in:
@@ -1552,6 +1552,14 @@ struct ChokeData
|
||||
tr_peer * peer;
|
||||
};
|
||||
|
||||
static int
|
||||
tr_compareDouble( double a, double b )
|
||||
{
|
||||
if( a < b ) return -1;
|
||||
if( a > b ) return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int
|
||||
compareChoke( const void * va, const void * vb )
|
||||
{
|
||||
|
||||
@@ -54,7 +54,8 @@ static int messageQueuing = FALSE;
|
||||
static tr_msg_list * messageQueue = NULL;
|
||||
static tr_msg_list ** messageQueueTail = &messageQueue;
|
||||
|
||||
void tr_msgInit( void )
|
||||
void
|
||||
tr_msgInit( void )
|
||||
{
|
||||
if( !messageLock )
|
||||
messageLock = tr_lockNew( );
|
||||
@@ -332,22 +333,6 @@ tr_compareUint64( uint64_t a, uint64_t b )
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
tr_compareDouble( double a, double b )
|
||||
{
|
||||
if( a < b ) return -1;
|
||||
if( a > b ) return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
tr_compareTime( time_t a, time_t b )
|
||||
{
|
||||
if( a < b ) return -1;
|
||||
if( a > b ) return 1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int
|
||||
tr_strcmp( const void * a, const void * b )
|
||||
{
|
||||
|
||||
@@ -213,8 +213,6 @@ void tr_set_compare( const void * a, size_t aCount,
|
||||
void * userData );
|
||||
|
||||
int tr_compareUint64( uint64_t a, uint64_t b );
|
||||
int tr_compareDouble( double a, double b );
|
||||
int tr_compareTime( time_t a, time_t b );
|
||||
|
||||
int tr_strcmp( const void * a, const void * b );
|
||||
int tr_strcasecmp( const char * a, const char * b );
|
||||
|
||||
Reference in New Issue
Block a user