Explorar o código

libdpkg: Drop legacy pkg_db_find() function

Now that all the code has been converted to use alternatives or the
newer variants of the function.

Sponsored-by: Linaro Limited

Signed-off-by: Guillem Jover <guillem@debian.org>
Raphaël Hertzog %!s(int64=15) %!d(string=hai) anos
pai
achega
18d5286add
Modificáronse 3 ficheiros con 0 adicións e 8 borrados
  1. 0 1
      lib/dpkg/dpkg-db.h
  2. 0 1
      lib/dpkg/libdpkg.map
  3. 0 6
      lib/dpkg/pkg-db.c

+ 0 - 1
lib/dpkg/dpkg-db.h

@@ -275,7 +275,6 @@ void pkg_blank(struct pkginfo *pp);
 void pkgbin_blank(struct pkgbin *pifp);
 bool pkg_is_informative(struct pkginfo *pkg, struct pkgbin *info);
 
-struct pkginfo *pkg_db_find(const char *name);
 struct pkgset *pkg_db_find_set(const char *name);
 struct pkginfo *pkg_db_find_singleton(const char *name);
 struct pkginfo *pkg_db_get_pkg(struct pkgset *set, const struct dpkg_arch *arch);

+ 0 - 1
lib/dpkg/libdpkg.map

@@ -255,7 +255,6 @@ LIBDPKG_PRIVATE {
 	pkg_spec_iter_destroy;
 
 	# Package in-core database functions
-	pkg_db_find;
 	pkg_db_find_set;
 	pkg_db_find_singleton;
 	pkg_db_find_pkg;

+ 0 - 6
lib/dpkg/pkg-db.c

@@ -165,12 +165,6 @@ pkg_db_find_pkg(const char *name, const struct dpkg_arch *arch)
   return pkg;
 }
 
-struct pkginfo *
-pkg_db_find(const char *name)
-{
-  return pkg_db_find_pkg(name, NULL);
-}
-
 /**
  * Return the number of package sets available in the database.
  *