]> git.ipfire.org Git - pakfire.git/commitdiff
_pakfire: Drop unused sync() function
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 13 Feb 2021 14:39:46 +0000 (14:39 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 13 Feb 2021 14:39:46 +0000 (14:39 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/_pakfire/_pakfiremodule.c
src/_pakfire/util.c
src/_pakfire/util.h

index fec585f1e99aab034f2762a16dd4e93b2dde4c87..9d2c3b11971c1b0299900b0d40b498e8a94741e8 100644 (file)
@@ -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 },
index f89e76389e7866eec21e6489793d2215cc5af0c3..2be986b7cb3dcb456b0202eaeb121283d121926e 100644 (file)
 #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;
index 75839ba621fa9f16013988b6c25fee69fb3ce48a..c21a2c2fa64830f7df084e63b275406e2ca88bbb 100644 (file)
@@ -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);