]> git.ipfire.org Git - pakfire.git/commitdiff
package: Drop unused flags
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 27 Apr 2021 17:23:21 +0000 (17:23 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 27 Apr 2021 17:24:20 +0000 (17:24 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/_pakfire/_pakfiremodule.c
src/libpakfire/include/pakfire/package.h

index 445f047ac7fd779273708c44267efb7482ee9b68..706001a25a037b92d71482292c8bb14547676aba 100644 (file)
@@ -26,7 +26,6 @@
 #include <solv/solver.h>
 
 #include <pakfire/arch.h>
-#include <pakfire/package.h>
 #include <pakfire/util.h>
 
 #include "archive.h"
@@ -191,12 +190,5 @@ PyMODINIT_FUNC PyInit__pakfire(void) {
        Py_INCREF(&TransactionType);
        PyModule_AddObject(module, "Transaction", (PyObject *)&TransactionType);
 
-       // Add constants for packages
-       if (PyModule_AddIntConstant(module, "PAKFIRE_PKG_GROUP", PAKFIRE_PKG_GROUP))
-               return NULL;
-
-       if (PyModule_AddIntConstant(module, "PAKFIRE_EQ", PAKFIRE_EQ))
-               return NULL;
-
        return module;
 }
index ee6f51bd533eb9ce123489d9c08c16db3d81c6bf..d4939cc44d2e6c4d755647da776b708900af3666 100644 (file)
@@ -117,29 +117,6 @@ PakfireFilelist pakfire_package_get_filelist(PakfirePackage pkg);
 int pakfire_package_set_filelist(PakfirePackage pkg, PakfireFilelist filelist);
 int pakfire_package_set_filelist_from_string(PakfirePackage pkg, const char* files);
 
-enum pakfire_package_keynames {
-    PAKFIRE_PKG,
-    PAKFIRE_PKG_ALL,
-    PAKFIRE_PKG_ARCH,
-    PAKFIRE_PKG_CONFLICTS,
-    PAKFIRE_PKG_DESCRIPTION,
-    PAKFIRE_PKG_EPOCH,
-    PAKFIRE_PKG_EVR,
-    PAKFIRE_PKG_FILE,
-    PAKFIRE_PKG_GROUP,
-    PAKFIRE_PKG_NAME,
-    PAKFIRE_PKG_OBSOLETES,
-    PAKFIRE_PKG_PROVIDES,
-    PAKFIRE_PKG_RELEASE,
-    PAKFIRE_PKG_REPONAME,
-    PAKFIRE_PKG_REQUIRES,
-    PAKFIRE_PKG_SOURCERPM,
-    PAKFIRE_PKG_SUMMARY,
-    PAKFIRE_PKG_URL,
-    PAKFIRE_PKG_VERSION,
-    PAKFIRE_PKG_LOCATION
-};
-
 enum pakfire_package_dump_flags {
        PAKFIRE_PKG_DUMP_FILELIST = 1 << 0,
        PAKFIRE_PKG_DUMP_LONG     = 1 << 1,