summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/deps.c
diff options
context:
space:
mode:
authorXavier Chantry <chantry.xavier@gmail.com>2010-10-12 21:41:55 +0200
committerDan McGee <dan@archlinux.org>2010-12-13 03:08:27 +0100
commitd5a7dc67d93f5e530a6b3611f567eff5afe76efb (patch)
treeca79c25af34292b30c4819cea264faa7d7244b17 /lib/libalpm/deps.c
parent8791ae0fdac16419d25e18acd245a65879807eb8 (diff)
downloadpacman-d5a7dc67d93f5e530a6b3611f567eff5afe76efb.tar.gz
pacman-d5a7dc67d93f5e530a6b3611f567eff5afe76efb.tar.xz
alpm: kill alpm_deptest
This has been replaced by the more flexible alpm_find_satisfier function, and alpm_deptest was completely unsused now. Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/deps.c')
-rw-r--r--lib/libalpm/deps.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c
index b652b19a..a9410785 100644
--- a/lib/libalpm/deps.c
+++ b/lib/libalpm/deps.c
@@ -218,31 +218,6 @@ pmpkg_t SYMEXPORT *alpm_find_satisfier(alpm_list_t *pkgs, const char *depstring)
/** Checks dependencies and returns missing ones in a list.
* Dependencies can include versions with depmod operators.
- * @param db pointer to the local package database
- * @param targets an alpm_list_t* of dependencies strings to satisfy
- * @return an alpm_list_t* of missing dependencies strings
- */
-alpm_list_t SYMEXPORT *alpm_deptest(pmdb_t *db, alpm_list_t *targets)
-{
- alpm_list_t *i, *ret = NULL;
-
- for(i = targets; i; i = alpm_list_next(i)) {
- pmdepend_t *dep;
- char *target;
-
- target = alpm_list_getdata(i);
- dep = _alpm_splitdep(target);
-
- if(!_alpm_find_dep_satisfier(_alpm_db_get_pkgcache(db), dep)) {
- ret = alpm_list_add(ret, target);
- }
- _alpm_dep_free(dep);
- }
- return(ret);
-}
-
-/** Checks dependencies and returns missing ones in a list.
- * Dependencies can include versions with depmod operators.
* @param pkglist the list of local packages
* @param reversedeps handles the backward dependencies
* @param remove an alpm_list_t* of packages to be removed