From fc0199265404cf0db8ef4220ee09da5d7874b52a Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 30 Jul 2012 05:10:43 -0500 Subject: [PATCH] queue: remove maxdepth + 1 hack (long story) --- queue.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/queue.c b/queue.c index e56aa73..abec853 100644 --- a/queue.c +++ b/queue.c @@ -81,8 +81,6 @@ pkg_queue_apply(pkg_queue_t *head, pkg_queue_apply_func_t func, int maxdepth, un /* if maxdepth is one, then we will not traverse deeper than our virtual package. */ if (!maxdepth) maxdepth = -1; - else if (maxdepth > 0) - maxdepth++; if (pkg_queue_verify(&world, head, maxdepth, flags) != PKG_ERRF_OK) return false; @@ -107,8 +105,6 @@ pkg_queue_validate(pkg_queue_t *head, int maxdepth, unsigned int flags) /* if maxdepth is one, then we will not traverse deeper than our virtual package. */ if (!maxdepth) maxdepth = -1; - else if (maxdepth > 0) - maxdepth++; if (pkg_queue_verify(&world, head, maxdepth, flags) != PKG_ERRF_OK) retval = false;