From 64af298cacd3bd6a4726ab73a0033109825fd0d5 Mon Sep 17 00:00:00 2001 From: corvid Date: Sat, 9 Jul 2016 02:26:12 +0000 Subject: rm IO flags, as they are never used --- src/IO/IO.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) (limited to 'src/IO/IO.c') diff --git a/src/IO/IO.c b/src/IO/IO.c index 333ec185..706b4ecd 100644 --- a/src/IO/IO.c +++ b/src/IO/IO.c @@ -36,7 +36,6 @@ typedef struct { int Key; /* Primary Key (for klist) */ int Op; /* IORead | IOWrite */ int FD; /* Current File Descriptor */ - int Flags; /* Flag array (look definitions above) */ int Status; /* nonzero upon IO failure */ Dstr *Buf; /* Internal buffer */ @@ -67,7 +66,6 @@ static IOData_t *IO_new(int op) IOData_t *io = dNew0(IOData_t, 1); io->Op = op; io->FD = -1; - io->Flags = 0; io->Key = 0; io->Buf = dStr_sized_new(IOBufLen); @@ -128,13 +126,12 @@ static void IO_close_fd(IOData_t *io, int CloseCode) { int events = 0; - _MSG("====> begin IO_close_fd (%d) Key=%d CloseCode=%d Flags=%d ", - io->FD, io->Key, CloseCode, io->Flags); + _MSG("====> begin IO_close_fd (%d) Key=%d CloseCode=%d ", + io->FD, io->Key, CloseCode); /* With HTTP, if we close the writing part, the reading one also gets - * closed! (other clients may set 'IOFlag_ForceClose') */ - if (((io->Flags & IOFlag_ForceClose) || (CloseCode == IO_StopRdWr)) && - io->FD != -1) { + * closed! */ + if ((CloseCode == IO_StopRdWr) && io->FD != -1) { dClose(io->FD); } else { _MSG(" NOT CLOSING "); -- cgit v1.2.3