]> git.ipfire.org Git - people/ms/linux.git/commitdiff
Kconfig: remove unused function 'menu_get_root_menu'
authorZeng Heng <zengheng4@huawei.com>
Mon, 12 Sep 2022 09:48:38 +0000 (17:48 +0800)
committerMasahiro Yamada <masahiroy@kernel.org>
Fri, 23 Sep 2022 19:30:30 +0000 (04:30 +0900)
There is nowhere calling `menu_get_root_menu` function,
so remove it.

Signed-off-by: Zeng Heng <zengheng4@huawei.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/lkc.h
scripts/kconfig/menu.c

index fa8c010aa6834718679a7a1bfe208c16c5b31ea4..c396aa10409027fdd4e248267879a4d9abee271e 100644 (file)
@@ -98,7 +98,6 @@ bool menu_is_empty(struct menu *menu);
 bool menu_is_visible(struct menu *menu);
 bool menu_has_prompt(struct menu *menu);
 const char *menu_get_prompt(struct menu *menu);
-struct menu *menu_get_root_menu(struct menu *menu);
 struct menu *menu_get_parent_menu(struct menu *menu);
 bool menu_has_help(struct menu *menu);
 const char *menu_get_help(struct menu *menu);
index 3d6f7cba88464b30c21aea07c148424250c23455..62b6313f51c8ba88d9def3cefa8b712fd5b6b3e1 100644 (file)
@@ -661,11 +661,6 @@ const char *menu_get_prompt(struct menu *menu)
        return NULL;
 }
 
-struct menu *menu_get_root_menu(struct menu *menu)
-{
-       return &rootmenu;
-}
-
 struct menu *menu_get_parent_menu(struct menu *menu)
 {
        enum prop_type type;