[master] 1422c07 Remove dead code
Martin Blix Grydeland
martin at varnish-software.com
Thu Apr 9 15:16:28 CEST 2015
commit 1422c07b40bd28995ea897f0e417ed89ad7c2c3b
Author: Martin Blix Grydeland <martin at varnish-software.com>
Date: Tue Mar 31 16:07:42 2015 +0200
Remove dead code
After VSLQ_Flush() there should not be any ready vtx' to get rid of.
diff --git a/lib/libvarnishapi/vsl_dispatch.c b/lib/libvarnishapi/vsl_dispatch.c
index 732f8a6..64fde12 100644
--- a/lib/libvarnishapi/vsl_dispatch.c
+++ b/lib/libvarnishapi/vsl_dispatch.c
@@ -1107,15 +1107,6 @@ VSLQ_Delete(struct VSLQ **pvslq)
CHECK_OBJ_NOTNULL(vslq, VSLQ_MAGIC);
(void)VSLQ_Flush(vslq, NULL, NULL);
- AN(VTAILQ_EMPTY(&vslq->incomplete));
-
- while (!VTAILQ_EMPTY(&vslq->ready)) {
- vtx = VTAILQ_FIRST(&vslq->ready);
- CHECK_OBJ_NOTNULL(vtx, VTX_MAGIC);
- VTAILQ_REMOVE(&vslq->ready, vtx, list_vtx);
- AN(vtx->flags & VTX_F_READY);
- vtx_retire(vslq, &vtx);
- }
AZ(vslq->n_outstanding);
VSL_DeleteCursor(vslq->c);
More information about the varnish-commit
mailing list