From bc9976396fff663ef1664f9f45a73ca29dfd6f5c Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 1 Jun 2023 16:24:56 +0000 Subject: [PATCH] keys: Drop delete operation Since we don't have a keystore any more, there is no need to implement this. Signed-off-by: Michael Tremer --- src/_pakfire/key.c | 14 -------------- src/libpakfire/include/pakfire/key.h | 2 -- src/libpakfire/libpakfire.sym | 1 - 3 files changed, 17 deletions(-) diff --git a/src/_pakfire/key.c b/src/_pakfire/key.c index 73083171a..d92e01fe6 100644 --- a/src/_pakfire/key.c +++ b/src/_pakfire/key.c @@ -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, diff --git a/src/libpakfire/include/pakfire/key.h b/src/libpakfire/include/pakfire/key.h index 286e35637..d965837ac 100644 --- a/src/libpakfire/include/pakfire/key.h +++ b/src/libpakfire/include/pakfire/key.h @@ -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); diff --git a/src/libpakfire/libpakfire.sym b/src/libpakfire/libpakfire.sym index 57931cf72..e3fdb613e 100644 --- a/src/libpakfire/libpakfire.sym +++ b/src/libpakfire/libpakfire.sym @@ -127,7 +127,6 @@ global: pakfire_filelist_unref; # key - pakfire_key_delete; pakfire_key_dump; pakfire_key_export; pakfire_key_generate; -- 2.47.3