talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit bc5122372ce33ff6659c6e952b94fc8caa05a832
parent 3476a5c7e4a7e77ccd474efac6a7156df973db1e
Author: Ricardo Mones <ricardo@mones.org>
Date:   Mon, 12 Dec 2022 14:19:24 +0100

Remove unused function statusbar_print()

Diffstat:
Msrc/statusbar.c | 15+--------------
Msrc/statusbar.h | 6+-----
2 files changed, 2 insertions(+), 19 deletions(-)

diff --git a/src/statusbar.c b/src/statusbar.c @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2021 the Claws Mail team and Hiroyuki Yamamoto + * Copyright (C) 1999-2022 the Claws Mail team and Hiroyuki Yamamoto * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -14,7 +14,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * */ #ifdef HAVE_CONFIG_H @@ -94,18 +93,6 @@ void statusbar_puts_all(const gchar *str) statusbar_puts(GTK_STATUSBAR(cur->data), str); } -void statusbar_print(GtkStatusbar *statusbar, const gchar *format, ...) -{ - va_list args; - gchar buf[BUFFSIZE]; - - va_start(args, format); - g_vsnprintf(buf, sizeof(buf), format, args); - va_end(args); - - statusbar_puts(statusbar, buf); -} - void statusbar_print_all(const gchar *format, ...) { va_list args; diff --git a/src/statusbar.h b/src/statusbar.h @@ -1,6 +1,6 @@ /* * Claws Mail -- a GTK based, lightweight, and fast e-mail client - * Copyright (C) 1999-2013 Hiroyuki Yamamoto and the Claws Mail team + * Copyright (C) 1999-2022 Hiroyuki Yamamoto and the Claws Mail team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -14,7 +14,6 @@ * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. - * */ #ifndef __STATUSBAR_H__ @@ -27,9 +26,6 @@ GtkWidget *statusbar_create (void); void statusbar_puts (GtkStatusbar *statusbar, const gchar *str); void statusbar_puts_all (const gchar *str); -void statusbar_print (GtkStatusbar *statusbar, - const gchar *format, ...) - G_GNUC_PRINTF(2, 3); void statusbar_print_all (const gchar *format, ...) G_GNUC_PRINTF(1, 2); void statusbar_pop_all (void);