Skip to content

Commit

Permalink
Kconfig: remove unused function 'menu_get_root_menu'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
henryZe authored and masahir0y committed Sep 23, 2022
1 parent 237fe72 commit 03764b3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion scripts/kconfig/lkc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
5 changes: 0 additions & 5 deletions scripts/kconfig/menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 03764b3

Please sign in to comment.