Mercurial > vim
changeset 17057:294b409ce7e3 v8.1.1528
patch 8.1.1528: popup_any_visible() is unused
commit https://github.com/vim/vim/commit/b4086ffa32d97831f2d25a37f8c1340223dee5eb
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 14 20:00:48 2019 +0200
patch 8.1.1528: popup_any_visible() is unused
Problem: Popup_any_visible() is unused.
Solution: Remove it.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 14 Jun 2019 20:15:06 +0200 |
parents | 6bb95f6facc8 |
children | 432352da4fa2 |
files | src/popupwin.c src/proto/popupwin.pro src/version.c |
diffstat | 3 files changed, 2 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- 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! */
--- a/src/proto/popupwin.pro +++ b/src/proto/popupwin.pro @@ -9,7 +9,6 @@ void f_popup_clear(typval_T *argvars, ty 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);