Changeset 10904


Ignore:
Timestamp:
Jun 28, 2010, 1:42:45 PM (12 years ago)
Author:
charles
Message:

(trunk libT) remove unused code

Location:
trunk/libtransmission
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/completion.h

    r10387 r10904  
    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/**
  • trunk/libtransmission/fdlimit.h

    r10676 r10904  
    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);
  • trunk/libtransmission/inout.c

    r10810 r10904  
    5757       TR_IO_WRITE
    5858};
    59 
    60 int64_t
    61 tr_lseek( int fd, int64_t offset, int whence )
    62 {
    63 #if defined( HAVE_LSEEK64 )
    64     return lseek64( fd, (off64_t)offset, whence );
    65 #elif defined( WIN32 )
    66     return _lseeki64( fd, offset, whence );
    67 #else
    68     return lseek( fd, (off_t)offset, whence );
    69 #endif
    70 }
    7159
    7260/* returns 0 on success, or an errno on failure */
  • trunk/libtransmission/verify.c

    r10695 r10904  
    321321
    322322static int
    323 compareVerifyByTorrent( const void * va,
    324                         const void * vb )
     323compareVerifyByTorrent( const void * va, const void * vb )
    325324{
    326325    const struct verify_node * a = va;
    327     const tr_torrent *         b = vb;
    328 
     326    const tr_torrent * b = vb;
    329327    return a->torrent - b;
    330 }
    331 
    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;
    346328}
    347329
  • trunk/libtransmission/verify.h

    r9868 r10904  
    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.