From b64646979ea50a13d0c7ec0b1a46969f661569a8 Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 24 Nov 2016 00:09:14 +0000 Subject: [PATCH] Remove unused function --- src/tools/http_upload.c | 1 - src/ui/window.c | 10 ---------- src/ui/window.h | 1 - 3 files changed, 12 deletions(-) diff --git a/src/tools/http_upload.c b/src/tools/http_upload.c index 23315460..8a31b25c 100644 --- a/src/tools/http_upload.c +++ b/src/tools/http_upload.c @@ -256,7 +256,6 @@ end: msg = strdup(FALLBACK_MSG); } win_update_entry_message(upload->window, upload->put_url, msg); - //win_update_entry_theme(upload->window, upload->put_url, THEME_THEM); win_mark_received(upload->window, upload->put_url); free(msg); diff --git a/src/ui/window.c b/src/ui/window.c index 1a7dc6bd..a000f1aa 100644 --- a/src/ui/window.c +++ b/src/ui/window.c @@ -1279,16 +1279,6 @@ win_update_entry_message(ProfWin *window, const char *const id, const char *cons } } -void -win_update_entry_theme(ProfWin *window, const char *const id, theme_item_t theme_item) -{ - ProfBuffEntry *entry = buffer_get_entry_by_id(window->layout->buffer, id); - if (entry) { - entry->theme_item = theme_item; - win_redraw(window); - } -} - void win_newline(ProfWin *window) { diff --git a/src/ui/window.h b/src/ui/window.h index e29cd62f..21c9154a 100644 --- a/src/ui/window.h +++ b/src/ui/window.h @@ -82,7 +82,6 @@ void win_sub_print(WINDOW *win, char *msg, gboolean newline, gboolean wrap, int void win_sub_newline_lazy(WINDOW *win); void win_mark_received(ProfWin *window, const char *const id); void win_update_entry_message(ProfWin *window, const char *const id, const char *const message); -void win_update_entry_theme(ProfWin *window, const char *const id, theme_item_t theme_item); gboolean win_has_active_subwin(ProfWin *window);