Skip to content

Commit 03764b3

Browse files
henryZemasahir0y
authored andcommitted
Kconfig: remove unused function 'menu_get_root_menu'
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>
1 parent 237fe72 commit 03764b3

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

scripts/kconfig/lkc.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ bool menu_is_empty(struct menu *menu);
9898
bool menu_is_visible(struct menu *menu);
9999
bool menu_has_prompt(struct menu *menu);
100100
const char *menu_get_prompt(struct menu *menu);
101-
struct menu *menu_get_root_menu(struct menu *menu);
102101
struct menu *menu_get_parent_menu(struct menu *menu);
103102
bool menu_has_help(struct menu *menu);
104103
const char *menu_get_help(struct menu *menu);

scripts/kconfig/menu.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -661,11 +661,6 @@ const char *menu_get_prompt(struct menu *menu)
661661
return NULL;
662662
}
663663

664-
struct menu *menu_get_root_menu(struct menu *menu)
665-
{
666-
return &rootmenu;
667-
}
668-
669664
struct menu *menu_get_parent_menu(struct menu *menu)
670665
{
671666
enum prop_type type;

0 commit comments

Comments
 (0)