mirror of
https://github.com/vim/vim.git
synced 2025-09-27 04:14:06 -04:00
patch 9.0.0375: the footer feature is unused
Problem: The footer feature is unused. Solution: Remove FEAT_FOOTER and code.
This commit is contained in:
26
src/gui.c
26
src/gui.c
@@ -445,9 +445,6 @@ gui_init_check(void)
|
||||
#if defined(FEAT_TOOLBAR) && (defined(FEAT_GUI_MOTIF) || defined(FEAT_GUI_HAIKU))
|
||||
gui.toolbar_height = 0;
|
||||
#endif
|
||||
#if defined(FEAT_FOOTER) && defined(FEAT_GUI_MOTIF)
|
||||
gui.footer_height = 0;
|
||||
#endif
|
||||
#ifdef FEAT_BEVAL_TIP
|
||||
gui.tooltip_fontset = NOFONTSET;
|
||||
#endif
|
||||
@@ -1530,10 +1527,6 @@ gui_get_base_height(void)
|
||||
if (gui_has_tabline())
|
||||
base_height += gui.tabline_height;
|
||||
# endif
|
||||
# ifdef FEAT_FOOTER
|
||||
if (vim_strchr(p_go, GO_FOOTER) != NULL)
|
||||
base_height += gui.footer_height;
|
||||
# endif
|
||||
# if defined(FEAT_GUI_MOTIF) && defined(FEAT_MENU)
|
||||
base_height += gui_mch_text_area_extra_height();
|
||||
# endif
|
||||
@@ -3479,10 +3472,6 @@ gui_init_which_components(char_u *oldval UNUSED)
|
||||
#ifdef FEAT_GUI_TABLINE
|
||||
int using_tabline;
|
||||
#endif
|
||||
#ifdef FEAT_FOOTER
|
||||
static int prev_footer = -1;
|
||||
int using_footer = FALSE;
|
||||
#endif
|
||||
#if defined(FEAT_MENU)
|
||||
static int prev_tearoff = -1;
|
||||
int using_tearoff = FALSE;
|
||||
@@ -3556,11 +3545,6 @@ gui_init_which_components(char_u *oldval UNUSED)
|
||||
case GO_TOOLBAR:
|
||||
using_toolbar = TRUE;
|
||||
break;
|
||||
#endif
|
||||
#ifdef FEAT_FOOTER
|
||||
case GO_FOOTER:
|
||||
using_footer = TRUE;
|
||||
break;
|
||||
#endif
|
||||
case GO_TEAROFF:
|
||||
#if defined(FEAT_MENU)
|
||||
@@ -3661,16 +3645,6 @@ gui_init_which_components(char_u *oldval UNUSED)
|
||||
fix_size = TRUE;
|
||||
}
|
||||
#endif
|
||||
#ifdef FEAT_FOOTER
|
||||
if (using_footer != prev_footer)
|
||||
{
|
||||
gui_mch_enable_footer(using_footer);
|
||||
prev_footer = using_footer;
|
||||
need_set_size |= RESIZE_VERT;
|
||||
if (using_footer)
|
||||
fix_size = TRUE;
|
||||
}
|
||||
#endif
|
||||
#if defined(FEAT_MENU) && !(defined(MSWIN) && !defined(FEAT_TEAROFF))
|
||||
if (using_tearoff != prev_tearoff)
|
||||
{
|
||||
|
Reference in New Issue
Block a user