]> git.ipfire.org Git - pakfire.git/commitdiff
_pakfire: Drop unused native_arch function
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 31 Oct 2023 10:54:07 +0000 (10:54 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 31 Oct 2023 10:54:07 +0000 (10:54 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/_pakfire/_pakfiremodule.c

index 77d025cbbe85810378eaeefdf7bd74624c5be62a..7f873ad0429e909feceb682936a5b569c1337e9a 100644 (file)
@@ -180,14 +180,6 @@ CLEANUP:
        return r;
 }
 
-static PyObject* _pakfire_native_arch(void) {
-       const char* arch = pakfire_arch_native();
-       if (!arch)
-               Py_RETURN_NONE;
-
-       return PyUnicode_FromString(arch);
-}
-
 static PyObject* _pakfire_set_log_level(PyObject* self, PyObject* args) {
        int level = 0;
 
@@ -254,7 +246,6 @@ static PyObject* _pakfire_version_compare(PyObject* self, PyObject* args) {
 }
 
 static PyMethodDef pakfireModuleMethods[] = {
-       {"native_arch", (PyCFunction)_pakfire_native_arch, METH_NOARGS, NULL },
        {
                "set_log_level",
                (PyCFunction)_pakfire_set_log_level,