]> git.ipfire.org Git - pakfire.git/commitdiff
keys: Drop delete operation
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Jun 2023 16:24:56 +0000 (16:24 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 1 Jun 2023 16:24:56 +0000 (16:24 +0000)
Since we don't have a keystore any more, there is no need to implement
this.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/_pakfire/key.c
src/libpakfire/include/pakfire/key.h
src/libpakfire/libpakfire.sym

index 73083171abd8316c25b9578eb3c1511cd850771b..d92e01fe6f65967989827bd2fd2a7acdfa56ba4b 100644 (file)
@@ -126,21 +126,7 @@ static PyObject* Key_export(KeyObject* self, PyObject* args) {
        Py_RETURN_NONE;
 }
 
-static PyObject* Key_delete(KeyObject* self) {
-       int r = pakfire_key_delete(self->key);
-       if (r == 0)
-               Py_RETURN_TRUE;
-
-       return NULL;
-}
-
 static struct PyMethodDef Key_methods[] = {
-       {
-               "delete",
-               (PyCFunction)Key_delete,
-               METH_NOARGS,
-               NULL
-       },
        {
                "export",
                (PyCFunction)Key_export,
index 286e35637feb248e8ed26e0c4a279b45b4219061..d965837ac24c3a2e2c2463ba7e12f70867e4f2f9 100644 (file)
@@ -40,8 +40,6 @@ typedef enum pakfire_key_export_mode {
 struct pakfire_key* pakfire_key_ref(struct pakfire_key* key);
 void pakfire_key_unref(struct pakfire_key* key);
 
-int pakfire_key_delete(struct pakfire_key* key);
-
 // Access key properties
 const char* pakfire_key_get_id(struct pakfire_key* key);
 const char* pakfire_key_get_algo(struct pakfire_key* key);
index 57931cf72d2ab49f143c91cb22cdeeda471010e5..e3fdb613e270aa3b400563af7dd6fdaf3efea84b 100644 (file)
@@ -127,7 +127,6 @@ global:
        pakfire_filelist_unref;
 
        # key
-       pakfire_key_delete;
        pakfire_key_dump;
        pakfire_key_export;
        pakfire_key_generate;