]> granicus.if.org Git - vim/commitdiff
patch 8.1.1528: popup_any_visible() is unused v8.1.1528
authorBram Moolenaar <Bram@vim.org>
Fri, 14 Jun 2019 18:00:48 +0000 (20:00 +0200)
committerBram Moolenaar <Bram@vim.org>
Fri, 14 Jun 2019 18:00:48 +0000 (20:00 +0200)
Problem:    Popup_any_visible() is unused.
Solution:   Remove it.

src/popupwin.c
src/proto/popupwin.pro
src/version.c

index 85bbac8848bf17e3852f0cdf09d29e0423194f7a..5265b4b9b370938f0467882701b0170169a56efd 100644 (file)
@@ -933,23 +933,6 @@ find_popup_win(int id)
     return wp;
 }
 
-/*
- * 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!
index 0b9dc42560cfc19d058d35587a781adf341c7783..cde0cae6e8b29ed3b2d874a22aca5c440b31fa0a 100644 (file)
@@ -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);
index 1356fda348929b3c3936056b4e3a277191e0201d..aa3986dbbbbf98bdcc38cc9d152f7d06e85f3347 100644 (file)
@@ -777,6 +777,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1528,
 /**/
     1527,
 /**/