diff options
author | Dan McGee <dan@archlinux.org> | 2007-12-03 00:25:34 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2007-12-03 00:25:34 +0100 |
commit | 0b6d73a5b4931519ee40646aa9093148f4571cf0 (patch) | |
tree | 53c7a828a53bc936a767ec0684752d62596614e4 /lib/libalpm/deps.c | |
parent | 7341d0954194149d5659dbd33ea4b2f9f005b54a (diff) | |
download | pacman-0b6d73a5b4931519ee40646aa9093148f4571cf0.tar.gz pacman-0b6d73a5b4931519ee40646aa9093148f4571cf0.tar.xz |
Remove _alpm_depmiss_isin
This is unneeded now that commit 2ed6b482d2fce916466e44e37930f0b0c0d928bb
has eliminated the last user of this function.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/deps.c')
-rw-r--r-- | lib/libalpm/deps.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/lib/libalpm/deps.c b/lib/libalpm/deps.c index 7b7d1097..7529ec98 100644 --- a/lib/libalpm/deps.c +++ b/lib/libalpm/deps.c @@ -82,25 +82,6 @@ pmdepmissing_t *_alpm_depmiss_new(const char *target, pmdepmod_t depmod, return(miss); } -int _alpm_depmiss_isin(pmdepmissing_t *needle, alpm_list_t *haystack) -{ - alpm_list_t *i; - - ALPM_LOG_FUNC; - - for(i = haystack; i; i = i->next) { - pmdepmissing_t *miss = i->data; - if(!strcmp(needle->target, miss->target) && - needle->depend.mod == miss->depend.mod && - !strcmp(needle->depend.name, miss->depend.name) && - !strcmp(needle->depend.version, miss->depend.version)) { - return(1); - } - } - - return(0); -} - /* Convert a list of pmpkg_t * to a graph structure, * with a edge for each dependency. * Returns a list of vertices (one vertex = one package) |