Commit 03764b30 authored by Zeng Heng's avatar Zeng Heng Committed by Masahiro Yamada
Browse files

Kconfig: remove unused function 'menu_get_root_menu'



There is nowhere calling `menu_get_root_menu` function,
so remove it.

Signed-off-by: default avatarZeng Heng <zengheng4@huawei.com>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 237fe727
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);
+0 −5
Original line number Diff line number Diff line
@@ -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;