summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-14 20:00:48 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-14 20:00:48 +0200
commitb4086ffa32d97831f2d25a37f8c1340223dee5eb (patch)
treed5df055479aa74cff1843bbc29c301b6f1ebed4c
parenta540f8aa3b2570f1d903b63413301ec3d48b27d5 (diff)
downloadvim-git-b4086ffa32d97831f2d25a37f8c1340223dee5eb.tar.gz
patch 8.1.1528: popup_any_visible() is unusedv8.1.1528
Problem: Popup_any_visible() is unused. Solution: Remove it.
-rw-r--r--src/popupwin.c17
-rw-r--r--src/proto/popupwin.pro1
-rw-r--r--src/version.c2
3 files changed, 2 insertions, 18 deletions
diff --git a/src/popupwin.c b/src/popupwin.c
index 85bbac884..5265b4b9b 100644
--- a/src/popupwin.c
+++ b/src/popupwin.c
@@ -934,23 +934,6 @@ find_popup_win(int id)
}
/*
- * Return TRUE if there any popups that are not hidden.
- */
- int
-popup_any_visible(void)
-{
- win_T *wp;
-
- for (wp = first_popupwin; wp != NULL; wp = wp->w_next)
- if ((wp->w_popup_flags & POPF_HIDDEN) == 0)
- return TRUE;
- for (wp = curtab->tp_first_popupwin; wp != NULL; wp = wp->w_next)
- if ((wp->w_popup_flags & POPF_HIDDEN) == 0)
- return TRUE;
- return FALSE;
-}
-
-/*
* Invoke the close callback for window "wp" with value "result".
* Careful: The callback may make "wp" invalid!
*/
diff --git a/src/proto/popupwin.pro b/src/proto/popupwin.pro
index 0b9dc4256..cde0cae6e 100644
--- a/src/proto/popupwin.pro
+++ b/src/proto/popupwin.pro
@@ -9,7 +9,6 @@ void f_popup_clear(typval_T *argvars, typval_T *rettv);
void f_popup_create(typval_T *argvars, typval_T *rettv);
void f_popup_atcursor(typval_T *argvars, typval_T *rettv);
void f_popup_notification(typval_T *argvars, typval_T *rettv);
-int popup_any_visible(void);
void f_popup_close(typval_T *argvars, typval_T *rettv);
void f_popup_hide(typval_T *argvars, typval_T *rettv);
void f_popup_show(typval_T *argvars, typval_T *rettv);
diff --git a/src/version.c b/src/version.c
index 1356fda34..aa3986dbb 100644
--- a/src/version.c
+++ b/src/version.c
@@ -778,6 +778,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1528,
+/**/
1527,
/**/
1526,