]> git.ipfire.org Git - pakfire.git/commitdiff
cli: progress: Remove unused function
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 23 Oct 2024 10:53:03 +0000 (10:53 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 23 Oct 2024 10:53:03 +0000 (10:53 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/cli/lib/progressbar.c

index 0fbce4a38effed4964c99723b05e0072e9c695db..9eda9ff38263098ed9ea90e53b9ab8917b7229e0 100644 (file)
@@ -293,23 +293,6 @@ static ssize_t cli_progressbar_string(struct cli_progressbar* p,
        return strlen(widget->buffer);
 }
 
-static int cli_progressbar_add_string(struct cli_progressbar* p, const char* format, ...)
-       __attribute__((format(printf, 2, 3)));
-
-static int cli_progressbar_add_string(struct cli_progressbar* p, const char* format, ...) {
-       char* s = NULL;
-       va_list args;
-
-       va_start(args, format);
-       int r = vasprintf(&s, format, args);
-       va_end(args);
-
-       if (r < 0)
-               return r;
-
-       return cli_progressbar_add_widget(p, cli_progressbar_string, free, 0, s);
-}
-
 static ssize_t cli_progressbar_title(struct cli_progressbar* p,
                struct cli_progressbar_widget* widget, unsigned int width, void* data) {
        const char* title = NULL;