]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove unused declaration and macros
authorTom Tromey <tom@tromey.com>
Sun, 12 Jan 2025 13:30:57 +0000 (06:30 -0700)
committerTom Tromey <tom@tromey.com>
Sun, 12 Jan 2025 13:30:57 +0000 (06:30 -0700)
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.

gdb/event-top.h
gdb/top.c

index c1e2edafda92eaa5a07831cc101d1c9262887c82..57f86f92ce0c144f44d2c9e996113138fd61644f 100644 (file)
@@ -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);
index bcaf4dc6a55707b01086fd2eebedf668a1455d74..f855afe3f15baa8dceeeab8d5f374e8e38561152 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
 
 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