tui_data_window::show_register_group had a useless "if" -- the
condition could never be false. This patch removes it.
gdb/ChangeLog
2020-07-01 Tom Tromey <tom@tromey.com>
* tui/tui-regs.c (tui_data_window::show_register_group): Remove
useless "if".
+2020-07-01 Tom Tromey <tom@tromey.com>
+
+ * tui/tui-regs.c (tui_data_window::show_register_group): Remove
+ useless "if".
+
2020-07-01 Tom Tromey <tom@tromey.com>
* tui/tui-regs.c (tui_data_window::show_register_group): Update.
continue;
data_item_win = &m_regs_content[pos];
- if (data_item_win)
+ if (!refresh_values_only)
{
- if (!refresh_values_only)
- {
- data_item_win->item_no = regnum;
- data_item_win->highlight = false;
- }
- tui_get_register (frame, data_item_win, regnum, 0);
+ data_item_win->item_no = regnum;
+ data_item_win->highlight = false;
}
+ tui_get_register (frame, data_item_win, regnum, 0);
pos++;
}
}