aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRandy Palamar <palamar@ualberta.ca>2023-05-02 09:00:37 -0600
committerRandy Palamar <palamar@ualberta.ca>2023-05-28 08:58:27 -0600
commitd699dea497f5ecd13cc1f3b780f84687b55e448c (patch)
tree059850546fb12fcd6bb06b584d5825e3e8d8cb30
parent3909d70f554a140bd4fa6eea04e1e24ae8ccc663 (diff)
downloadvis-d699dea497f5ecd13cc1f3b780f84687b55e448c.tar.gz
vis-d699dea497f5ecd13cc1f3b780f84687b55e448c.tar.xz
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.
-rw-r--r--vis-prompt.c7
-rw-r--r--vis.h2
2 files changed, 0 insertions, 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