From: Michael Tremer Date: Fri, 20 Aug 2021 09:22:47 +0000 (+0000) Subject: _pakfire: Remove unused add_archive() method from Repo X-Git-Tag: 0.9.28~987 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44f9472aa5cfd390cbe5e09222acb116ead078cf;p=pakfire.git _pakfire: Remove unused add_archive() method from Repo Signed-off-by: Michael Tremer --- diff --git a/src/_pakfire/repo.c b/src/_pakfire/repo.c index 431571b63..a4b791191 100644 --- a/src/_pakfire/repo.c +++ b/src/_pakfire/repo.c @@ -268,23 +268,6 @@ static PyObject* Repo__add_package(RepoObject* self, PyObject* args) { return obj; } -static PyObject* Repo_add_archive(RepoObject* self, PyObject* args) { - ArchiveObject* archive = NULL; - - if (!PyArg_ParseTuple(args, "O!", &ArchiveType, &archive)) - return NULL; - - // Add package - struct pakfire_package* pkg = pakfire_repo_add_archive(self->repo, archive->archive); - assert(pkg); - - // Create Python object - PyObject* obj = new_package(&PackageType, pkg); - pakfire_package_unref(pkg); - - return obj; -} - static PyObject* Repo_clean(RepoObject* self, PyObject* args) { int r = pakfire_repo_clean(self->repo, 0); @@ -381,12 +364,6 @@ static struct PyMethodDef Repo_methods[] = { METH_VARARGS, NULL }, - { - "add_archive", - (PyCFunction)Repo_add_archive, - METH_VARARGS, - NULL - }, { NULL } };