]> git.ipfire.org Git - pakfire.git/commitdiff
execute: Drop unused pakfire_execute_command function
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 2 Aug 2022 18:12:32 +0000 (18:12 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 2 Aug 2022 18:12:32 +0000 (18:12 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/execute.c
src/libpakfire/include/pakfire/execute.h
src/libpakfire/libpakfire.sym

index d6ca176aa8e8d76aab26e132d5b0d68ade70169c..97badfe89b31570c363ffd665bfab271a2088b12 100644 (file)
@@ -907,15 +907,6 @@ ERROR:
        return r;
 }
 
-PAKFIRE_EXPORT int pakfire_execute_command(struct pakfire* pakfire, const char* command, char* envp[],
-               int flags, pakfire_execute_logging_callback logging_callback, void* data) {
-       const char* argv[2] = {
-               command, NULL,
-       };
-
-       return pakfire_execute(pakfire, argv, envp, flags, logging_callback, data);
-}
-
 PAKFIRE_EXPORT int pakfire_execute_script(struct pakfire* pakfire, const char* script, const size_t size,
                const char* args[], char* envp[], int flags, pakfire_execute_logging_callback logging_callback, void* data) {
        const char* root = pakfire_get_path(pakfire);
index 73d38d8c13f3ec0ff0af162c4b8d637dc9eb15b1..0fbf80e2742795acdccf4a30595d2b8d0b3c2549 100644 (file)
@@ -28,8 +28,6 @@ typedef int (*pakfire_execute_logging_callback)(struct pakfire* pakfire, void* d
 
 int pakfire_execute(struct pakfire* pakfire, const char* argv[], char* envp[],
        int flags, pakfire_execute_logging_callback logging_callback, void* data);
-int pakfire_execute_command(struct pakfire* pakfire, const char* command, char* envp[],
-       int flags, pakfire_execute_logging_callback logging_callback, void* data);
 int pakfire_execute_script(struct pakfire* pakfire, const char* script, const size_t size,
        const char* args[], char* envp[], int flags, pakfire_execute_logging_callback logging_callback, void* data);
 
index 47612248d8c7ff0008cfa448329d4b77c132e932..19207afd49cab89c28c6ce84054f2cbcabbff90f 100644 (file)
@@ -29,7 +29,6 @@ global:
        pakfire_create;
        pakfire_erase;
        pakfire_execute;
-       pakfire_execute_command;
        pakfire_execute_script;
        pakfire_get_arch;
        pakfire_get_path;