From 86b584d11972766499d33e780e2e04340df2639b Mon Sep 17 00:00:00 2001 From: Alejandro del Castillo Date: Mon, 23 Nov 2015 13:48:42 -0600 Subject: [PATCH] pkg_dependence_satisfied: remove unused function Signed-off-by: Alejandro del Castillo --- libopkg/pkg_depends.c | 28 ---------------------------- libopkg/pkg_depends.h | 1 - 2 files changed, 29 deletions(-) diff --git a/libopkg/pkg_depends.c b/libopkg/pkg_depends.c index aa34987..6979f14 100644 --- a/libopkg/pkg_depends.c +++ b/libopkg/pkg_depends.c @@ -422,34 +422,6 @@ int pkg_dependence_satisfiable(depend_t * depend) return 0; } -int pkg_dependence_satisfied(depend_t * depend) -{ - abstract_pkg_t *apkg = depend->pkg; - abstract_pkg_vec_t *provider_apkgs = apkg->provided_by; - int n_providers = provider_apkgs->len; - abstract_pkg_t **apkgs = provider_apkgs->pkgs; - int i; - int n_pkgs; - int j; - - for (i = 0; i < n_providers; i++) { - abstract_pkg_t *papkg = apkgs[i]; - pkg_vec_t *pkg_vec = papkg->pkgs; - if (pkg_vec) { - n_pkgs = pkg_vec->len; - for (j = 0; j < n_pkgs; j++) { - pkg_t *pkg = pkg_vec->pkgs[j]; - if (version_constraints_satisfied(depend, pkg)) { - if (pkg->state_status == SS_INSTALLED - || pkg->state_status == SS_UNPACKED) - return 1; - } - } - } - } - return 0; -} - static int is_pkg_in_pkg_vec(pkg_vec_t * vec, pkg_t * pkg) { int i; diff --git a/libopkg/pkg_depends.h b/libopkg/pkg_depends.h index c051e51..af897b2 100644 --- a/libopkg/pkg_depends.h +++ b/libopkg/pkg_depends.h @@ -92,7 +92,6 @@ int pkg_hash_fetch_unsatisfied_dependencies(pkg_t * pkg, pkg_vec_t * depends, char ***unresolved); pkg_vec_t *pkg_hash_fetch_conflicts(pkg_t * pkg); int pkg_dependence_satisfiable(depend_t * depend); -int pkg_dependence_satisfied(depend_t * depend); const char *constraint_to_str(enum version_constraint c); compound_depend_t *pkg_get_depends(pkg_t *pkg, enum depend_type type); -- 2.25.1