From: Michael Tremer Date: Sat, 13 Feb 2021 14:39:46 +0000 (+0000) Subject: _pakfire: Drop unused sync() function X-Git-Tag: 0.9.28~1285^2~734 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ab53aefa8220bad34d331199bee00e45fc7b6101;p=pakfire.git _pakfire: Drop unused sync() function Signed-off-by: Michael Tremer --- diff --git a/src/_pakfire/_pakfiremodule.c b/src/_pakfire/_pakfiremodule.c index fec585f1e..9d2c3b119 100644 --- a/src/_pakfire/_pakfiremodule.c +++ b/src/_pakfire/_pakfiremodule.c @@ -115,7 +115,6 @@ static PyMethodDef pakfireModuleMethods[] = { {"performance_index", (PyCFunction)performance_index, METH_VARARGS, NULL}, {"version_compare", (PyCFunction)version_compare, METH_VARARGS, NULL}, {"get_capabilities", (PyCFunction)get_capabilities, METH_VARARGS, NULL}, - {"sync", (PyCFunction)_sync, METH_NOARGS, NULL}, {"native_arch", (PyCFunction)_pakfire_native_arch, METH_NOARGS, NULL }, {"arch_supported_by_host", (PyCFunction)_pakfire_arch_supported_by_host, METH_VARARGS, NULL }, {"mount", (PyCFunction)_pakfire_mount, METH_VARARGS|METH_KEYWORDS, NULL }, diff --git a/src/_pakfire/util.c b/src/_pakfire/util.c index f89e76389..2be986b7c 100644 --- a/src/_pakfire/util.c +++ b/src/_pakfire/util.c @@ -32,13 +32,6 @@ #include "package.h" #include "util.h" -PyObject *_sync(PyObject *self, PyObject *args) { - /* Just sync everything to disks. */ - sync(); - - Py_RETURN_NONE; -} - PyObject *version_compare(PyObject *self, PyObject *args) { Pool *pool; const char *evr1, *evr2; diff --git a/src/_pakfire/util.h b/src/_pakfire/util.h index 75839ba62..c21a2c2fa 100644 --- a/src/_pakfire/util.h +++ b/src/_pakfire/util.h @@ -28,7 +28,6 @@ #include "pakfire.h" -extern PyObject *_sync(PyObject *self, PyObject *args); extern PyObject *version_compare(PyObject *self, PyObject *args); extern PyObject* performance_index(PyObject* self, PyObject* args);