]> git.ipfire.org Git - pakfire.git/commitdiff
_pakfire: repo: Remove function to export configuration
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 11 Oct 2022 16:00:50 +0000 (16:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 11 Oct 2022 16:00:50 +0000 (16:00 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/_pakfire/repo.c

index a4b791191ea9f0d6e0ba5569839431d78d4a937f..26c09f36b6d6a7f061222036925cf7786a4a9ce6 100644 (file)
@@ -236,19 +236,6 @@ static PyObject* Repo_refresh(RepoObject* self, PyObject* args, PyObject* kwds)
        Py_RETURN_NONE;
 }
 
-static PyObject* Repo_get_config(RepoObject* self) {
-       char* config = pakfire_repo_get_config(self->repo);
-
-       if (config) {
-               PyObject* obj = PyUnicode_FromString(config);
-               free(config);
-
-               return obj;
-       }
-
-       Py_RETURN_NONE;
-}
-
 static PyObject* Repo__add_package(RepoObject* self, PyObject* args) {
        const char* name;
        const char* evr;
@@ -340,12 +327,6 @@ static struct PyMethodDef Repo_methods[] = {
                METH_VARARGS,
                NULL,
        },
-       {
-               "get_config",
-               (PyCFunction)Repo_get_config,
-               METH_NOARGS,
-               NULL,
-       },
        {
                "refresh",
                (PyCFunction)Repo_refresh,