From 9ab26b4a0fdc5fba707abf56abfb4c503b35c3e5 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 1 Jul 2020 21:21:12 -0600 Subject: Remove tui_data_window::name The "name" member of tui_data_window was set, but never used. This removes it. gdb/ChangeLog 2020-07-01 Tom Tromey * tui/tui-regs.c (tui_data_window::show_register_group): Update. * tui/tui-regs.h (struct tui_data_item_window) : Remove. --- gdb/ChangeLog | 5 +++++ gdb/tui/tui-regs.c | 1 - gdb/tui/tui-regs.h | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 95e2b2d..cb0eb08 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2020-07-01 Tom Tromey + * tui/tui-regs.c (tui_data_window::show_register_group): Update. + * tui/tui-regs.h (struct tui_data_item_window) : Remove. + +2020-07-01 Tom Tromey + * tui/tui-stack.c (SINGLE_KEY): Move from tui-data.h * tui/tui-winsource.h (enum tui_line_or_address_kind) (struct tui_line_or_address): Move from tui-data.h. diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c index 15ce7a0..39f5d73 100644 --- a/gdb/tui/tui-regs.c +++ b/gdb/tui/tui-regs.c @@ -262,7 +262,6 @@ tui_data_window::show_register_group (struct reggroup *group, if (!refresh_values_only) { data_item_win->item_no = regnum; - data_item_win->name = name; data_item_win->highlight = false; } tui_get_register (frame, data_item_win, regnum, 0); diff --git a/gdb/tui/tui-regs.h b/gdb/tui/tui-regs.h index 250f4e7..7acc0c7 100644 --- a/gdb/tui/tui-regs.h +++ b/gdb/tui/tui-regs.h @@ -48,7 +48,6 @@ struct tui_data_item_window : public tui_gen_win_info return 1; } - const char *name = nullptr; /* The register number, or data display number. */ int item_no = -1; bool highlight = false; -- cgit v1.1