From 39fa13358020711db0dc6d5a00d41ac0c0c89db6 Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 6 Oct 2013 02:12:25 +0100 Subject: Refactored ui_current_print_line --- src/ui/core.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/ui/core.c b/src/ui/core.c index 1f77736d..332960fd 100644 --- a/src/ui/core.c +++ b/src/ui/core.c @@ -824,14 +824,8 @@ ui_current_print_line(const char * const msg, ...) ProfWin *current = wins_get_current(); va_list arg; va_start(arg, msg); - GString *fmt_msg = g_string_new(NULL); - g_string_vprintf(fmt_msg, msg, arg); - current->print_time(current, '-'); - wprintw(current->win, "%s\n", fmt_msg->str); - g_string_free(fmt_msg, TRUE); + current->print_line(current, msg, arg); va_end(arg); - - wins_refresh_current(); } void -- cgit 1.4.1-2-gfad0