forked from aniani/vim
patch 8.1.1528: popup_any_visible() is unused
Problem: Popup_any_visible() is unused. Solution: Remove it.
This commit is contained in:
@@ -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!
|
||||
|
Reference in New Issue
Block a user