Mercurial > vim
diff src/gui.c @ 30075:be5b8d4616b2 v9.0.0375
patch 9.0.0375: the footer feature is unused
Commit: https://github.com/vim/vim/commit/c8ac3a072f18d4b250e55e91f610fe517e218777
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 4 12:29:28 2022 +0100
patch 9.0.0375: the footer feature is unused
Problem: The footer feature is unused.
Solution: Remove FEAT_FOOTER and code.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 04 Sep 2022 13:30:03 +0200 |
parents | 89e1d67814a9 |
children | eb534258bdaf |
line wrap: on
line diff
--- a/src/gui.c +++ b/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 #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; @@ -3557,11 +3546,6 @@ gui_init_which_components(char_u *oldval using_toolbar = TRUE; break; #endif -#ifdef FEAT_FOOTER - case GO_FOOTER: - using_footer = TRUE; - break; -#endif case GO_TEAROFF: #if defined(FEAT_MENU) using_tearoff = TRUE; @@ -3661,16 +3645,6 @@ gui_init_which_components(char_u *oldval 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) {