From 464e4e5b90df7f5f01b0632ff7e6a705208b7a50 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 31 Oct 2023 10:54:07 +0000 Subject: [PATCH] _pakfire: Drop unused native_arch function Signed-off-by: Michael Tremer --- src/_pakfire/_pakfiremodule.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/_pakfire/_pakfiremodule.c b/src/_pakfire/_pakfiremodule.c index 77d025cbb..7f873ad04 100644 --- a/src/_pakfire/_pakfiremodule.c +++ b/src/_pakfire/_pakfiremodule.c @@ -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, -- 2.47.3