]> git.ipfire.org Git - pakfire.git/commitdiff
_pakfire: Remove unused add_archive() method from Repo
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 20 Aug 2021 09:22:47 +0000 (09:22 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 20 Aug 2021 09:22:47 +0000 (09:22 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/_pakfire/repo.c

index 431571b635992ce9d3b4c9e389ff349b84b240e9..a4b791191ea9f0d6e0ba5569839431d78d4a937f 100644 (file)
@@ -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 }
 };