From: Michael Tremer Date: Tue, 11 Oct 2022 16:00:50 +0000 (+0000) Subject: _pakfire: repo: Remove function to export configuration X-Git-Tag: 0.9.28~255 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c8ccde241827d831773d2c06fdf28c50988149d4;p=pakfire.git _pakfire: repo: Remove function to export configuration Signed-off-by: Michael Tremer --- diff --git a/src/_pakfire/repo.c b/src/_pakfire/repo.c index a4b791191..26c09f36b 100644 --- a/src/_pakfire/repo.c +++ b/src/_pakfire/repo.c @@ -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,