diff options
author | Colin Walters <walters@verbum.org> | 2017-12-12 15:08:16 -0500 |
---|---|---|
committer | Colin Walters <walters@verbum.org> | 2017-12-12 15:24:42 -0500 |
commit | 985ed1c861abf4a0069b582ed6a26f6728e673c2 (patch) | |
tree | aeb2ca98e4d2389e8ec908e876dafd88d0f9cd02 | |
parent | bb7dd4dd085d0e1805a39478cac437d35313d22b (diff) | |
download | libglnx-985ed1c861abf4a0069b582ed6a26f6728e673c2.tar.gz |
console: Drop unused current_text/current_percent
The idea was clearly to avoid useless updates, but we never actually *set* these
values. Drop the code for now to avoid confusion, I'll reimplement this in a
better way.
-rw-r--r-- | glnx-console.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/glnx-console.c b/glnx-console.c index 8654c7b..2ca1349 100644 --- a/glnx-console.c +++ b/glnx-console.c @@ -36,8 +36,6 @@ */ #define MAX_PROGRESSBAR_COLUMNS 20 -static char *current_text = NULL; -static gint current_percent = -1; static gboolean locked; static gboolean @@ -154,8 +152,6 @@ glnx_console_lock (GLnxConsoleRef *console) locked = console->locked = TRUE; - current_percent = 0; - if (console->is_tty) { if (g_once_init_enter (&sigwinch_initialized)) @@ -200,10 +196,6 @@ text_percent_internal (const char *text, const guint input_textlen = text ? strlen (text) : 0; - if (percentage == current_percent - && g_strcmp0 (text, current_text) == 0) - return; - if (!stdout_is_tty ()) { if (text) @@ -332,9 +324,6 @@ glnx_console_unlock (GLnxConsoleRef *console) g_return_if_fail (locked); g_return_if_fail (console->locked); - current_percent = -1; - g_clear_pointer (¤t_text, g_free); - if (console->is_tty) fputc ('\n', stdout); |