Changeset 8823


Ignore:
Timestamp:
Jul 17, 2009, 5:23:03 PM (13 years ago)
Author:
charles
Message:

(trunk libT) remove dead code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r8791 r8823  
    8484struct tr_openfile
    8585{
    86     tr_bool    isCheckedOut;
    8786    tr_bool    isWritable;
    8887    int        torrentId;
     
    376375    tr_close_file( o->fd );
    377376    o->fd = -1;
    378     o->isCheckedOut = FALSE;
    379 }
    380 
    381 static int
    382 fileIsCheckedOut( const struct tr_openfile * o )
    383 {
    384     return fileIsOpen( o ) && o->isCheckedOut;
    385377}
    386378
     
    418410            continue;
    419411
    420         assert( !fileIsCheckedOut( o ) );
    421 
    422412        if( doWrite && !o->isWritable )
    423413        {
     
    484474    dbgmsg( "checking out '%s' in slot %d", filename, winner );
    485475    o->torrentId = torrentId;
    486     o->isCheckedOut = 1;
    487476    o->date = tr_date( );
    488477    return o->fd;
     
    500489            continue;
    501490        dbgmsg( "releasing file \"%s\"", o->filename );
    502         o->isCheckedOut = FALSE;
    503491        break;
    504492    }
     
    516504            continue;
    517505        dbgmsg( "tr_fdFileClose closing \"%s\"", filename );
    518         assert( !o->isCheckedOut && "this is a test assertion... I *think* this is always true now" );
    519506        TrCloseFile( o );
    520507    }
Note: See TracChangeset for help on using the changeset viewer.