Changeset 10905


Ignore:
Timestamp:
Jun 29, 2010, 1:21:38 AM (12 years ago)
Author:
charles
Message:

(2.0x) remove dead code

Location:
branches/2.0x
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0x/gtk/details.c

    r10890 r10905  
    11621162{
    11631163    int q[4];
    1164     char up_speed[128];
    1165     char down_speed[128];
    11661164    char collated_name[128];
    11671165    const char * client = peer->client;
     
    11701168        client = "";
    11711169
    1172     tr_strlspeed( up_speed, peer->rateToPeer, sizeof( up_speed ) );
    1173     tr_strlspeed( down_speed, peer->rateToClient, sizeof( down_speed ) );
    11741170    if( sscanf( peer->addr, "%d.%d.%d.%d", q, q+1, q+2, q+3 ) != 4 )
    11751171        g_strlcpy( collated_name, peer->addr, sizeof( collated_name ) );
  • branches/2.0x/libtransmission/completion.h

    r10387 r10905  
    6161
    6262tr_completion * tr_cpDestruct( tr_completion * );
    63 
    64 static inline tr_completion* tr_cpNew( tr_torrent * tor )
    65 {
    66     return tr_cpConstruct( tr_new0( tr_completion, 1 ), tor );
    67 }
    68 
    69 static inline void tr_cpFree( tr_completion * cp )
    70 {
    71     tr_free( tr_cpDestruct( cp ) );
    72 }
    7363
    7464/**
  • branches/2.0x/libtransmission/fdlimit.h

    r10676 r10905  
    3939void tr_close_file( int fd );
    4040
    41 int64_t tr_lseek( int fd, int64_t offset, int whence );
    4241ssize_t tr_pread(int fd, void *buf, size_t count, off_t offset);
    4342ssize_t tr_pwrite(int fd, const void *buf, size_t count, off_t offset);
  • branches/2.0x/libtransmission/inout.c

    r10552 r10905  
    5555       TR_IO_WRITE
    5656};
    57 
    58 int64_t
    59 tr_lseek( int fd, int64_t offset, int whence )
    60 {
    61 #if defined( HAVE_LSEEK64 )
    62     return lseek64( fd, (off64_t)offset, whence );
    63 #elif defined( WIN32 )
    64     return _lseeki64( fd, offset, whence );
    65 #else
    66     return lseek( fd, (off_t)offset, whence );
    67 #endif
    68 }
    6957
    7058/* returns 0 on success, or an errno on failure */
  • branches/2.0x/libtransmission/verify.c

    r10695 r10905  
    330330}
    331331
    332 tr_bool
    333 tr_verifyInProgress( const tr_torrent * tor )
    334 {
    335     tr_bool found = FALSE;
    336     tr_lock * lock = getVerifyLock( );
    337     tr_lockLock( lock );
    338 
    339     assert( tr_isTorrent( tor ) );
    340 
    341     found = ( tor == currentNode.torrent )
    342          || ( tr_list_find( verifyList, tor, compareVerifyByTorrent ) != NULL );
    343 
    344     tr_lockUnlock( lock );
    345     return found;
    346 }
    347 
    348332void
    349333tr_verifyRemove( tr_torrent * tor )
  • branches/2.0x/libtransmission/verify.h

    r9868 r10905  
    3030void tr_verifyRemove( tr_torrent * tor );
    3131
    32 tr_bool tr_verifyInProgress( const tr_torrent * tor );
    33 
    3432void tr_verifyClose( tr_session * );
    3533
Note: See TracChangeset for help on using the changeset viewer.