diff options
author | Hettomei <itsumo.sibyllin@gmail.com> | 2015-05-08 14:46:23 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2015-07-17 21:40:40 -0400 |
commit | b69f1b85f5966bd5fcc589a90ccde0b8cd3b2762 (patch) | |
tree | cd2b724e37909f5f5e5095b200f709b28cc3b52e /src | |
parent | 28d39db1712d10902b260ee402b014cd3e9c4b55 (diff) | |
download | rneovim-b69f1b85f5966bd5fcc589a90ccde0b8cd3b2762.tar.gz rneovim-b69f1b85f5966bd5fcc589a90ccde0b8cd3b2762.tar.bz2 rneovim-b69f1b85f5966bd5fcc589a90ccde0b8cd3b2762.zip |
Macro cleanup: FEAT_BEVAL_TIP
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/menu.c | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/src/nvim/menu.c b/src/nvim/menu.c index c532c19667..a8bf4ee5be 100644 --- a/src/nvim/menu.c +++ b/src/nvim/menu.c @@ -1320,59 +1320,6 @@ void ex_emenu(exarg_T *eap) EMSG2(_("E335: Menu not defined for %s mode"), mode); } -#if defined(FEAT_BEVAL_TIP) -/* - * Given a menu descriptor, e.g. "File.New", find it in the menu hierarchy. - */ -vimmenu_T *gui_find_menu(char_u *path_name) -{ - vimmenu_T *menu = NULL; - char_u *name; - char_u *saved_name; - char_u *p; - - menu = root_menu; - - saved_name = vim_strsave(path_name); - - name = saved_name; - while (*name) { - /* find the end of one dot-separated name and put a NUL at the dot */ - p = menu_name_skip(name); - - while (menu != NULL) { - if (menu_name_equal(name, menu)) { - if (menu->children == NULL) { - /* found a menu item instead of a sub-menu */ - if (*p == NUL) - EMSG(_("E336: Menu path must lead to a sub-menu")); - else - EMSG(_(e_notsubmenu)); - menu = NULL; - goto theend; - } - if (*p == NUL) /* found a full match */ - goto theend; - break; - } - menu = menu->next; - } - if (menu == NULL) /* didn't find it */ - break; - - /* Found a match, search the sub-menu. */ - menu = menu->children; - name = p; - } - - if (menu == NULL) - EMSG(_("E337: Menu not found - check menu names")); -theend: - xfree(saved_name); - return menu; -} -#endif - /* * Translation of menu names. Just a simple lookup table. */ |