diff options
Diffstat (limited to 'src/solver.c')
-rw-r--r-- | src/solver.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/solver.c b/src/solver.c index faa20b0..2ea7f3f 100644 --- a/src/solver.c +++ b/src/solver.c @@ -493,17 +493,6 @@ static void reconsider_name(struct apk_solver_state *ss, struct apk_name *name) name->name, name->ss.has_options, name->ss.reverse_deps_done); } -static int count_requirers(const struct apk_package *pkg) -{ - int cnt = pkg->name->ss.requirers; - struct apk_dependency *p; - - foreach_array_item(p, pkg->provides) - cnt += p->name->ss.requirers; - - return cnt; -} - static int compare_providers(struct apk_solver_state *ss, struct apk_provider *pA, struct apk_provider *pB) { @@ -597,13 +586,6 @@ static int compare_providers(struct apk_solver_state *ss, return r; } - /* Prefer highest requirer count. */ - r = count_requirers(pkgA) - count_requirers(pkgB); - if (r) { - dbg_printf(" prefer highest requirer count\n"); - return r; - } - /* Prefer installed */ if (!(solver_flags & APK_SOLVERF_UPGRADE)) { r = (pkgA->ipkg != NULL) - (pkgB->ipkg != NULL); |