]> git.pond.sub.org Git - empserver/blobdiff - src/lib/empthread/io.c
Clean up superfluous includes
[empserver] / src / lib / empthread / io.c
index 0a44916d7462da0cf1ec502268775e1d0ff2713b..3c5c060273d92a912e4656792c1a85b676f0b40b 100644 (file)
@@ -54,7 +54,6 @@
 #include "file.h"
 #include "ioqueue.h"
 #include "misc.h"
-#include "queue.h"
 
 struct iop {
     int fd;
@@ -352,24 +351,6 @@ io_puts(struct iop *iop, char *buf)
     return ioq_puts(iop->output, buf);
 }
 
-int
-io_shutdown(struct iop *iop, int flags)
-{
-    flags &= (IO_READ | IO_WRITE);
-    if ((iop->flags & flags) != flags)
-       return -1;
-    if (flags & IO_READ) {
-       shutdown(iop->fd, 0);
-       ioq_drain(iop->input);
-    }
-    if (flags & IO_WRITE) {
-       shutdown(iop->fd, 1);
-       ioq_drain(iop->output);
-       iop->last_out = 0;
-    }
-    return 0;
-}
-
 int
 io_error(struct iop *iop)
 {