Removed obsolete code.

The read and write buffers are now emptied in dcb_final_free, so
no need to do it explicitly here.
This commit is contained in:
Johan Wikman 2015-09-23 15:11:50 +03:00
parent 3b19acd1de
commit 6a318836fb

View File

@ -383,16 +383,6 @@ int n_connect = 0;
static int
httpd_close(DCB *dcb)
{
if(dcb->dcb_readqueue)
{
while((dcb->dcb_readqueue = GWBUF_CONSUME_ALL(dcb->dcb_readqueue)));
}
if(dcb->writeq)
{
while((dcb->writeq = GWBUF_CONSUME_ALL(dcb->writeq)));
}
return 0;
}