]> git.ipfire.org Git - pakfire.git/commitdiff
python: Drop unused "make_path" function
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 19 Apr 2021 15:58:47 +0000 (15:58 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 19 Apr 2021 15:58:47 +0000 (15:58 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/_pakfire/pakfire.c

index bbd19a9d561c108942cd11d6c99f719cb0c35513..fb2aa491ee452a29f0a4ba5898347955b05fd58c 100644 (file)
@@ -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,