summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rpmmodule/rpmmodule.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/rpmmodule/rpmmodule.c b/rpmmodule/rpmmodule.c
index 2d912857f..6138a4ae4 100644
--- a/rpmmodule/rpmmodule.c
+++ b/rpmmodule/rpmmodule.c
@@ -27,7 +27,6 @@ static PyObject * rpmdbNext(rpmdbObject * s, PyObject * args);
static PyObject * rpmdbByName(rpmdbObject * s, PyObject * args);
static PyObject * rpmdbByProvides(rpmdbObject * s, PyObject * args);
static PyObject * rpmdbByFile(rpmdbObject * s, PyObject * args);
-static PyObject * dbFindPackage(rpmdbObject * s, PyObject * args);
static int rpmdbLength(rpmdbObject * s);
static hdrObject * rpmdbSubscript(rpmdbObject * s, PyObject * key);
@@ -180,7 +179,6 @@ static struct PyMethodDef rpmdbMethods[] = {
{"findbyfile", (PyCFunction) rpmdbByFile, 1 },
{"findbyname", (PyCFunction) rpmdbByName, 1 },
{"findbyprovides", (PyCFunction) rpmdbByProvides, 1 },
- {"findpackage", (PyCFunction) dbFindPackage, 1 },
{NULL, NULL} /* sentinel */
};
@@ -755,17 +753,6 @@ static PyObject * rpmdbByProvides(rpmdbObject * s, PyObject * args) {
return handleDbResult(rc, matches);
}
-static PyObject * dbFindPackage(rpmdbObject * s, PyObject * args) {
- char * str;
- dbiIndexSet matches;
- int rc;
-
- if (!PyArg_ParseTuple(args, "s", &str)) return NULL;
-
- rc = rpmdbFindPackage(s->db, str, &matches);
- return handleDbResult(rc, matches);
-}
-
static int rpmdbLength(rpmdbObject * s) {
int first;
int count = 0;