aboutsummaryrefslogtreecommitdiff
path: root/gdb/top.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2020-09-15 08:54:03 -0600
committerTom Tromey <tromey@adacore.com>2020-09-15 08:54:03 -0600
commitcbe256847e19f044039afeba7b152ef19d9e0635 (patch)
tree5cb5eef4ef2fab306271fb9ca27749b72ce62298 /gdb/top.c
parentdb92ac4568f1d4cc1a3409098d033afbe8b555f5 (diff)
downloadbinutils-cbe256847e19f044039afeba7b152ef19d9e0635.zip
binutils-cbe256847e19f044039afeba7b152ef19d9e0635.tar.gz
binutils-cbe256847e19f044039afeba7b152ef19d9e0635.tar.bz2
Remove ui::num
I noticed that nothing uses ui::num, so this patch removes it. gdb/ChangeLog 2020-09-15 Tom Tromey <tromey@adacore.com> * top.c (ui::ui): Update. (highest_ui_num): Remove. * top.h (struct ui) <num>: Remove.
Diffstat (limited to 'gdb/top.c')
-rw-r--r--gdb/top.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/top.c b/gdb/top.c
index acd31af..8dbc7ce 100644
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -270,14 +270,10 @@ void (*deprecated_call_command_hook) (struct cmd_list_element * c,
void (*deprecated_context_hook) (int id);
-/* The highest UI number ever assigned. */
-static int highest_ui_num;
-
/* See top.h. */
ui::ui (FILE *instream_, FILE *outstream_, FILE *errstream_)
: next (nullptr),
- num (++highest_ui_num),
call_readline (nullptr),
input_handler (nullptr),
command_editing (0),