From dc23bec5af327cff093dc471441124944c39cc9c Mon Sep 17 00:00:00 2001 From: graham.gower Date: Tue, 10 Nov 2009 00:00:59 -0500 Subject: Remove opkg_internal_use_only and fix associated assumptions RE pkg->provides. It appears that the opkg_internal_use_only provides string was introduced to bandaid over problems with assuming that the pkg->provides, pkg->provides_str and pkg->provides_count are all the same length. As each pkg provides itself, the pkg->provides array was one longer than the str and count fields. Most of the uses of pkg->provides did not take this into account. This behaviour has been changed. pkg->provides is now pkg->provides_count long and it is pkg->provides_str which is shorter by one. Associated dead code has also been removed. git-svn-id: http://opkg.googlecode.com/svn/trunk@277 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358 --- (limited to 'libopkg/pkg_depends.h') diff --git a/libopkg/pkg_depends.h b/libopkg/pkg_depends.h index 18570cb..32461f6 100644 --- a/libopkg/pkg_depends.h +++ b/libopkg/pkg_depends.h @@ -64,18 +64,6 @@ void buildReplaces(hash_table_t * hash, abstract_pkg_t * ab_pkg, pkg_t * pkg); void buildDepends(hash_table_t * hash, pkg_t * pkg); /** - * pkg_has_common_provides returns 1 if pkg and replacee both provide - * the same abstract package and 0 otherwise. - */ -int pkg_has_common_provides(pkg_t *pkg, pkg_t *replacee); - -/** - * pkg_provides returns 1 if pkg->provides contains providee and 0 - * otherwise. - */ -int pkg_provides_abstract(pkg_t *pkg, abstract_pkg_t *providee); - -/** * pkg_replaces returns 1 if pkg->replaces contains one of replacee's provides and 0 * otherwise. */ -- cgit v0.9.1