[04/11] Remove tui_data_window::name

Message ID 20200618021523.10681-5-tom@tromey.com
State New
Headers show
Series
  • TUI cleanups
Related show

Commit Message

Tom Tromey June 18, 2020, 2:15 a.m.
The "name" member of tui_data_window was set, but never used.  This
removes it.

2020-06-14  Tom Tromey  <tom@tromey.com>

	* tui/tui-regs.c (tui_data_window::show_register_group): Update.
	* tui/tui-regs.h (struct tui_data_item_window) <name>: Remove.
---
 gdb/ChangeLog      | 5 +++++
 gdb/tui/tui-regs.c | 1 -
 gdb/tui/tui-regs.h | 1 -
 3 files changed, 5 insertions(+), 2 deletions(-)

-- 
2.17.2

Patch

diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c
index 15ce7a02226..39f5d736392 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 250f4e74667..7acc0c7bd62 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;