mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
Remove "cmd_type" function
The cmd_type function only has a single caller, which is in the CLI implementation code. This patch removes the function, and moves the cmd_types enum definition from command.h to cli-decode.h, fixing an 18 year old FIXME. gdb/ChangeLog 2020-06-28 Tom Tromey <tom@tromey.com> * command.h (cmd_types): Remove. (cmd_type): Don't declare. * cli/cli-decode.h (enum cmd_types): Uncomment. No longer a typedef. * cli/cli-cmds.c (setting_cmd): Use cmd->type directly. * cli/cli-decode.c (cmd_type): Remove.
This commit is contained in:
@ -139,12 +139,6 @@ get_cmd_context (struct cmd_list_element *cmd)
|
||||
return cmd->context;
|
||||
}
|
||||
|
||||
enum cmd_types
|
||||
cmd_type (struct cmd_list_element *cmd)
|
||||
{
|
||||
return cmd->type;
|
||||
}
|
||||
|
||||
void
|
||||
set_cmd_completer (struct cmd_list_element *cmd, completer_ftype *completer)
|
||||
{
|
||||
|
Reference in New Issue
Block a user