Revert "Maintain information about enabled/disabled I/O."

This reverts commit 604f8fd10db747e57d8710cc53326c0e114ad32c.
This commit is contained in:
Juliusz Chroboczek 2011-02-18 00:36:24 +00:00
parent c9a7becf87
commit 77c034122e
2 changed files with 0 additions and 14 deletions

View File

@ -581,9 +581,6 @@ tr_peerIoNew( tr_session * session,
UTP_Connect( utp_socket );
}
io->write_enabled = 1;
io->read_enabled = 1;
return io;
}
@ -710,14 +707,6 @@ tr_peerIoSetEnabled( tr_peerIo * io,
event_enable( io, event );
else
event_disable( io, event );
if( dir == TR_UP )
io->write_enabled = isEnabled;
else if( dir == TR_DOWN ) {
io->read_enabled = isEnabled;
if( io->utp_socket && isEnabled )
UTP_RBDrained(io->utp_socket);
}
}
/***

View File

@ -105,9 +105,6 @@ typedef struct tr_peerIo
struct evbuffer * inbuf;
struct evbuffer * outbuf;
struct tr_list * outbuf_datatypes; /* struct tr_datatype */
tr_bool write_enabled;
tr_bool read_enabled;
struct event * event_read;
struct event * event_write;