Changeset 3830


Ignore:
Timestamp:
Nov 15, 2007, 10:03:22 PM (14 years ago)
Author:
charles
Message:

remove dead code.

Location:
trunk/libtransmission
Files:
3 edited

Legend:

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

    r3829 r3830  
    251251
    252252void
    253 tr_peerIoSetIOMode( tr_peerIo * c, short enable, short disable )
    254 {
    255     tr_setBufferEventMode( c->handle, c->bufev, enable, disable );
     253tr_peerIoSetIOMode( tr_peerIo * io, short enable, short disable )
     254{
     255    assert( tr_amInEventThread( io->handle ) );
     256    bufferevent_enable( io->bufev, enable );
     257    bufferevent_disable( io->bufev, disable );
    256258}
    257259
  • trunk/libtransmission/trevent.c

    r3829 r3830  
    6565{
    6666    TR_EV_EVHTTP_MAKE_REQUEST,
    67     TR_EV_BUFFEREVENT_SET,
    6867    TR_EV_TIMER_ADD,
    6968    TR_EV_TIMER_DEL,
     
    142141                evhttp_make_request( cmd->evcon, cmd->req, cmd->evtype, cmd->uri );
    143142                tr_free( cmd->uri );
    144                 break;
    145 
    146            case TR_EV_BUFFEREVENT_SET:
    147                 bufferevent_enable( cmd->bufev, cmd->enable );
    148                 bufferevent_disable( cmd->bufev, cmd->disable );
    149143                break;
    150144
     
    274268        cmd->evtype = type;
    275269        cmd->uri = uri;
    276         pushList( handle->events, cmd );
    277     }
    278 }
    279 
    280 void
    281 tr_setBufferEventMode( struct tr_handle   * handle,
    282                        struct bufferevent * bufev,
    283                        short                mode_enable,
    284                        short                mode_disable )
    285 {
    286     if( tr_amInThread( handle->events->thread ) ) {
    287         bufferevent_enable( bufev, mode_enable );
    288         bufferevent_disable( bufev, mode_disable );
    289     } else {
    290         struct tr_event_command * cmd = tr_new0( struct tr_event_command, 1 );
    291         cmd->mode = TR_EV_BUFFEREVENT_SET;
    292         cmd->bufev = bufev;
    293         cmd->enable = mode_enable;
    294         cmd->disable = mode_disable;
    295270        pushList( handle->events, cmd );
    296271    }
  • trunk/libtransmission/trevent.h

    r3829 r3830  
    3838                             char                      * uri);
    3939
    40 void tr_setBufferEventMode( struct tr_handle   * tr_handle,
    41                             struct bufferevent * bufferEvent,
    42                             short                mode_enable,
    43                             short                mode_disable );
    44 
    4540int tr_amInEventThread( struct tr_handle * handle );
    4641
Note: See TracChangeset for help on using the changeset viewer.