changeset 4635:6562a0dbf236

rm IO flags, as they are never used
author corvid
date Sa, 09 Jul 2016 02:26:12 +0000
parents ed117ac44774
children bb7a38a8e7bf
files src/IO/IO.c src/IO/IO.h
diffstat 2 files changed, 4 insertions(+), 13 deletions(-) [+]
line wrap: on
line diff
--- a/src/IO/IO.c	Sa Jul 09 02:02:40 2016 +0000
+++ b/src/IO/IO.c	Sa Jul 09 02:26:12 2016 +0000
@@ -36,7 +36,6 @@
    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 @@
    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 @@
 {
    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 ");
--- a/src/IO/IO.h	Sa Jul 09 02:02:40 2016 +0000
+++ b/src/IO/IO.h	Sa Jul 09 02:26:12 2016 +0000
@@ -14,12 +14,6 @@
 #define IOAbort  3
 
 /*
- * IO Flags
- */
-#define IOFlag_ForceClose  (1 << 1)
-#define IOFlag_SingleWrite (1 << 2)
-
-/*
  * IO constants
  */
 #define IOBufLen         8192