]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove tui_data_item_window::value
authorTom Tromey <tom@tromey.com>
Sat, 13 Jul 2019 21:55:48 +0000 (15:55 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 20 Aug 2019 22:22:05 +0000 (16:22 -0600)
The field tui_data_item_window::value is not used, so remove it.

gdb/ChangeLog
2019-08-20  Tom Tromey  <tom@tromey.com>

* tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
field.
* tui/tui-regs.c (~tui_data_item_window): Update.

gdb/ChangeLog
gdb/tui/tui-regs.c
gdb/tui/tui-regs.h

index 346cc35d0bc21644dc7802106ed55defd26dfe34..b4108d90d2046d77c473dc96c55adebeeddf084e 100644 (file)
@@ -1,3 +1,9 @@
+2019-08-20  Tom Tromey  <tom@tromey.com>
+
+       * tui/tui-regs.h (struct tui_data_item_window) <value>: Remove
+       field.
+       * tui/tui-regs.c (~tui_data_item_window): Update.
+
 2019-08-20  Tom Tromey  <tom@tromey.com>
 
        * tui/tui-regs.c (tui_register_format, tui_get_register): Move
index 9ea6e723644968679fdfd7a9a6ea23bc284eec05..aebea49effad79b282eadb55e65371ab082cad6e 100644 (file)
@@ -103,7 +103,6 @@ tui_get_register (struct frame_info *frame,
 
 tui_data_item_window::~tui_data_item_window ()
 {
-  xfree (value);
   xfree (content);
 }
 
index 7b0bb505a8e499c29cc0a1c2f6dfa8a368a97e0b..d54b556148eab39701bf6325399a7beb43deb04b 100644 (file)
@@ -38,7 +38,6 @@ struct tui_data_item_window : public tui_gen_win_info
   const char *name = nullptr;
   /* The register number, or data display number.  */
   int item_no = -1;
-  void *value = nullptr;
   bool highlight = false;
   char *content = nullptr;
 };