summaryrefslogtreecommitdiffstats
path: root/libopkg
diff options
context:
space:
mode:
authorgraham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-05 23:27:48 (EST)
committer graham.gower <graham.gower@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>2009-11-05 23:27:48 (EST)
commitf286ba3011c06919664acfbf1d03b1073175e819 (patch)
tree075fd8dd0c86ad3d76b6a35710628e1ed191cf92 /libopkg
parent4a1946ab90b3b98c1362e0fc366867bd56418bf9 (diff)
Remove unused function.
git-svn-id: http://opkg.googlecode.com/svn/trunk@268 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
Diffstat (limited to 'libopkg')
-rw-r--r--libopkg/pkg_depends.c26
-rw-r--r--libopkg/pkg_depends.h1
2 files changed, 0 insertions, 27 deletions
diff --git a/libopkg/pkg_depends.c b/libopkg/pkg_depends.c
index 3210e9d..971ebed 100644
--- a/libopkg/pkg_depends.c
+++ b/libopkg/pkg_depends.c
@@ -607,32 +607,6 @@ char ** add_unresolved_dep(pkg_t * pkg, char ** the_lost, int ref_ndx)
return resized;
}
-
-void printDepends(pkg_t * pkg)
-{
- int i, j;
- compound_depend_t * depend;
- int count;
-
- count = pkg->pre_depends_count + pkg->depends_count;
-
- depend = pkg->depends;
- if(!depend){
- fprintf(stderr, "Depends pointer is NULL\n");
- return;
- }
- for(i = 0; i < count; i++){
- fprintf(stderr, "%s has %d possibilities:\n",
- (depend->type == GREEDY_DEPEND) ? "Greedy-Depend" : ((depend->type == DEPEND) ? "Depend" : "Pre-Depend"),
- depend->possibility_count);
- for(j = 0; j < depend->possibility_count; j++)
- fprintf(stderr, "\t%s version %s (%d)\n",
- depend->possibilities[j]->pkg->name,
- depend->possibilities[j]->version,
- depend->possibilities[j]->constraint);
- depend++;
- }
-}
int buildProvides(hash_table_t * hash, abstract_pkg_t * ab_pkg, pkg_t * pkg)
{
diff --git a/libopkg/pkg_depends.h b/libopkg/pkg_depends.h
index 462a4db..eb80e0f 100644
--- a/libopkg/pkg_depends.h
+++ b/libopkg/pkg_depends.h
@@ -96,7 +96,6 @@ int pkg_conflicts(pkg_t *pkg, pkg_t *conflicts);
char *pkg_depend_str(pkg_t *pkg, int index);
void buildDependedUponBy(pkg_t * pkg, abstract_pkg_t * ab_pkg);
void freeDepends(pkg_t *pkg);
-void printDepends(pkg_t * pkg);
int version_constraints_satisfied(depend_t * depends, pkg_t * pkg);
int pkg_hash_fetch_unsatisfied_dependencies(opkg_conf_t *conf, pkg_t * pkg, pkg_vec_t *depends, char *** unresolved);
pkg_vec_t * pkg_hash_fetch_conflicts(hash_table_t * hash, pkg_t * pkg);