提交 03764b30 编写于 作者: Z Zeng Heng 提交者: Masahiro Yamada

Kconfig: remove unused function 'menu_get_root_menu'

There is nowhere calling `menu_get_root_menu` function,
so remove it.
Signed-off-by: NZeng Heng <zengheng4@huawei.com>
Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
上级 237fe727
...@@ -98,7 +98,6 @@ bool menu_is_empty(struct menu *menu); ...@@ -98,7 +98,6 @@ bool menu_is_empty(struct menu *menu);
bool menu_is_visible(struct menu *menu); bool menu_is_visible(struct menu *menu);
bool menu_has_prompt(struct menu *menu); bool menu_has_prompt(struct menu *menu);
const char *menu_get_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); struct menu *menu_get_parent_menu(struct menu *menu);
bool menu_has_help(struct menu *menu); bool menu_has_help(struct menu *menu);
const char *menu_get_help(struct menu *menu); const char *menu_get_help(struct menu *menu);
......
...@@ -661,11 +661,6 @@ const char *menu_get_prompt(struct menu *menu) ...@@ -661,11 +661,6 @@ const char *menu_get_prompt(struct menu *menu)
return NULL; return NULL;
} }
struct menu *menu_get_root_menu(struct menu *menu)
{
return &rootmenu;
}
struct menu *menu_get_parent_menu(struct menu *menu) struct menu *menu_get_parent_menu(struct menu *menu)
{ {
enum prop_type type; enum prop_type type;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册