From: Michael Tremer Date: Mon, 19 Apr 2021 15:58:47 +0000 (+0000) Subject: python: Drop unused "make_path" function X-Git-Tag: 0.9.28~1285^2~324 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a93b4dd711aced5c9642163e4c15a3fed0c83c30;p=pakfire.git python: Drop unused "make_path" function Signed-off-by: Michael Tremer --- diff --git a/src/_pakfire/pakfire.c b/src/_pakfire/pakfire.c index bbd19a9d5..fb2aa491e 100644 --- a/src/_pakfire/pakfire.c +++ b/src/_pakfire/pakfire.c @@ -317,22 +317,6 @@ static Py_ssize_t Pakfire_len(PakfireObject* self) { return pakfire_count_packages(self->pakfire); } -static PyObject* Pakfire_make_path(PakfireObject* self, PyObject* args) { - const char* path = NULL; - char abspath[PATH_MAX]; - - if (!PyArg_ParseTuple(args, "s", &path)) - return NULL; - - int r = pakfire_make_path(self->pakfire, abspath, path); - if (r < 0) { - PyErr_SetFromErrno(PyExc_OSError); - return NULL; - } - - return PyUnicode_FromString(abspath); -} - static PyObject* Pakfire_execute_logging_callback = NULL; static int __Pakfire_execute_logging_callback(Pakfire pakfire, void* data, @@ -887,12 +871,6 @@ static struct PyMethodDef Pakfire_methods[] = { METH_VARARGS, NULL }, - { - "make_path", - (PyCFunction)Pakfire_make_path, - METH_VARARGS, - NULL - }, { "read_makefile", (PyCFunction)Pakfire_read_makefile,