diff options
author | Tom Tromey <tom@tromey.com> | 2025-01-12 06:30:57 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2025-01-12 06:30:57 -0700 |
commit | 3923a3d020d52195ccae2fdbe0e86c8fb80d5283 (patch) | |
tree | eb50a9d93461a44157bd7ef57d639fbe5887aae3 | |
parent | fd7728c8a4aa7aa5761ccb18879ea8d137958b06 (diff) | |
download | binutils-3923a3d020d52195ccae2fdbe0e86c8fb80d5283.zip binutils-3923a3d020d52195ccae2fdbe0e86c8fb80d5283.tar.gz binutils-3923a3d020d52195ccae2fdbe0e86c8fb80d5283.tar.bz2 |
Remove unused declaration and macros
event-top.h declares the_prompts, but it is never defined. It's a
leftover from some ancient refactoring.
Similarly, top.c defines a few prompt-related macros, but these are
unused.
This patch removes these.
-rw-r--r-- | gdb/event-top.h | 1 | ||||
-rw-r--r-- | gdb/top.c | 4 |
2 files changed, 0 insertions, 5 deletions
diff --git a/gdb/event-top.h b/gdb/event-top.h index c1e2eda..57f86f9 100644 --- a/gdb/event-top.h +++ b/gdb/event-top.h @@ -130,7 +130,6 @@ extern void async_enable_stdin (void); extern bool set_editing_cmd_var; extern bool exec_done_display_p; -extern struct prompts the_prompts; extern void (*after_char_processing_hook) (void); extern int call_stdin_event_handler_again_p; extern void gdb_readline_no_editing_callback (void *client_data); @@ -85,10 +85,6 @@ extern void initialize_all_files (void); -#define PROMPT(X) the_prompts.prompt_stack[the_prompts.top + X].prompt -#define PREFIX(X) the_prompts.prompt_stack[the_prompts.top + X].prefix -#define SUFFIX(X) the_prompts.prompt_stack[the_prompts.top + X].suffix - /* Default command line prompt. This is overridden in some configs. */ #ifndef DEFAULT_PROMPT |