From d699dea497f5ecd13cc1f3b780f84687b55e448c Mon Sep 17 00:00:00 2001 From: Randy Palamar Date: Tue, 2 May 2023 09:00:37 -0600 Subject: remove unused vis_message_hide() function the message window gets closed like a normal window and nothing calls this function. In fact, it wasn't even used when it was added 8 years ago in 979ab79. --- vis-prompt.c | 7 ------- vis.h | 2 -- 2 files changed, 9 deletions(-) diff --git a/vis-prompt.c b/vis-prompt.c index bb1db39..1add11a 100644 --- a/vis-prompt.c +++ b/vis-prompt.c @@ -205,10 +205,3 @@ void vis_message_show(Vis *vis, const char *msg) { view_cursor_to(win->view, pos); vis_window_focus(win); } - -void vis_message_hide(Vis *vis) { - if (!vis->message_window) - return; - vis_window_close(vis->message_window); - vis->message_window = NULL; -} diff --git a/vis.h b/vis.h index 441d184..85a458a 100644 --- a/vis.h +++ b/vis.h @@ -248,8 +248,6 @@ void vis_info_hide(Vis*); /** Display arbitrary long message in a dedicated window. */ void vis_message_show(Vis*, const char *msg); -/** Close message window. */ -void vis_message_hide(Vis*); /** * @} * @defgroup vis_changes -- cgit v1.2.3