Remove useless "if' from tui-regs.c
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".
This commit is contained in:
parent
9ab26b4a0f
commit
c9753adb01
@ -1,3 +1,8 @@
|
||||
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.
|
||||
|
@ -257,15 +257,12 @@ tui_data_window::show_register_group (struct reggroup *group,
|
||||
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++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user