queue: remove maxdepth + 1 hack (long story)

pull/36/head
William Pitcock 2012-07-30 05:10:43 -05:00
parent 0d412423bd
commit fc01992654
1 changed files with 0 additions and 4 deletions

View File

@ -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;