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.
This commit is contained in:
Tom Tromey 2020-09-15 08:54:03 -06:00
parent db92ac4568
commit cbe256847e
3 changed files with 6 additions and 7 deletions

View File

@ -1,3 +1,9 @@
2020-09-15 Tom Tromey <tromey@adacore.com>
* top.c (ui::ui): Update.
(highest_ui_num): Remove.
* top.h (struct ui) <num>: Remove.
2020-09-15 Tom Tromey <tromey@adacore.com> 2020-09-15 Tom Tromey <tromey@adacore.com>
* unittests/memory-map-selftests.c (valid_mem_map): Now array. * unittests/memory-map-selftests.c (valid_mem_map): Now array.

View File

@ -270,14 +270,10 @@ void (*deprecated_call_command_hook) (struct cmd_list_element * c,
void (*deprecated_context_hook) (int id); void (*deprecated_context_hook) (int id);
/* The highest UI number ever assigned. */
static int highest_ui_num;
/* See top.h. */ /* See top.h. */
ui::ui (FILE *instream_, FILE *outstream_, FILE *errstream_) ui::ui (FILE *instream_, FILE *outstream_, FILE *errstream_)
: next (nullptr), : next (nullptr),
num (++highest_ui_num),
call_readline (nullptr), call_readline (nullptr),
input_handler (nullptr), input_handler (nullptr),
command_editing (0), command_editing (0),

View File

@ -65,9 +65,6 @@ struct ui
/* Pointer to next in singly-linked list. */ /* Pointer to next in singly-linked list. */
struct ui *next; struct ui *next;
/* Convenient handle (UI number). Unique across all UIs. */
int num;
/* The UI's command line buffer. This is to used to accumulate /* The UI's command line buffer. This is to used to accumulate
input until we have a whole command line. */ input until we have a whole command line. */
struct buffer line_buffer; struct buffer line_buffer;