]> git.ipfire.org Git - pakfire.git/commitdiff
libpakfire: Drop unused pakfire_init()
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 10 Jan 2021 14:57:13 +0000 (14:57 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 10 Jan 2021 14:57:13 +0000 (14:57 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/_pakfire/_pakfiremodule.c
src/libpakfire/include/pakfire/pakfire.h
src/libpakfire/libpakfire.sym
src/libpakfire/pakfire.c
tests/testsuite.c
tests/testsuite.h

index b0fed6e953bb4ea48f1dbc2e494400b3e5bffb87..d46f538d5882af1892a84b7b6bd312f7bc789a1e 100644 (file)
@@ -93,11 +93,6 @@ PyMODINIT_FUNC PyInit__pakfire(void) {
        bindtextdomain(PACKAGE_TARNAME, "/usr/share/locale");
        textdomain(PACKAGE_TARNAME);
 
-       // Initialize the pakfire library
-       int r = pakfire_init();
-       if (r)
-               return NULL;
-
        // Create the module
        PyObject* module = PyModule_Create(&moduledef);
        if (!module)
index 0743fae008afd11325e83641f999014263507817..af4398a66f82724e8975508d3b7e8799a1366fd3 100644 (file)
@@ -28,8 +28,6 @@
 
 #include <pakfire/types.h>
 
-int pakfire_init();
-
 Pakfire pakfire_create(const char* path, const char* arch);
 
 Pakfire pakfire_ref(Pakfire pakfire);
index 6b7d81c30fea993598dec5499f21cc370d4a677d..b11a5b27a6fd4db89f7ff3fa413d8d29c8de25d6 100644 (file)
@@ -21,7 +21,6 @@
 LIBPAKFIRE_0 {
 global:
        # pakfire
-       pakfire_init;
        pakfire_cache_age;
        pakfire_cache_stat;
        pakfire_count_packages;
index 65193116fc99f0d9a78b87bffc0a1c997c139c14..0b5ba63ef8446a6d86899e449b35da8ce2a7beb4 100644 (file)
@@ -63,10 +63,6 @@ struct _Pakfire {
        int nrefs;
 };
 
-PAKFIRE_EXPORT int pakfire_init() {
-       return 0;
-}
-
 static int log_priority(const char* priority) {
        char* end;
 
index 246345f8430e74d59fc0692680d7c7d1d17f4373..f2f095fc0f2ed25652752c53bc012083f780782c 100644 (file)
 
 const char* TEST_SRC_PATH = ABS_TOP_SRCDIR "/tests";
 
-int testsuite_init() {
-       // Initialize the pakfire library
-       int r = pakfire_init();
-       if (r)
-               return r;
-
-       return 0;
-}
-
 static int test_run(test_t* t) {
        LOG("running %s\n", t->name);
 
index 686c7363a5e25ff499faf17997273f0f401a9d41..9254b94fd7b33c6d4cdbcc0124764c89d0f9a39f 100644 (file)
@@ -44,7 +44,6 @@ typedef struct testsuite {
        size_t left;
 } testsuite_t;
 
-int testsuite_init();
 testsuite_t* testsuite_create(size_t n);
 int testsuite_add_test(testsuite_t* ts, const char* name, test_function_t func);
 int testsuite_run(testsuite_t* ts);