From fc6c2fce824e53045ec1b2651304637d33cbd2a2 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 23 Oct 2024 10:53:03 +0000 Subject: [PATCH] cli: progress: Remove unused function Signed-off-by: Michael Tremer --- src/cli/lib/progressbar.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/cli/lib/progressbar.c b/src/cli/lib/progressbar.c index 0fbce4a38..9eda9ff38 100644 --- a/src/cli/lib/progressbar.c +++ b/src/cli/lib/progressbar.c @@ -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; -- 2.39.5