GNU Binutils with patches for OS216
Revision | c9753adb0153fbb5ce01583881862642e7f126af (tree) |
---|---|
Time | 2020-07-02 12:21:14 |
Author | Tom Tromey <tom@trom...> |
Commiter | Tom Tromey |
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".
@@ -1,5 +1,10 @@ | ||
1 | 1 | 2020-07-01 Tom Tromey <tom@tromey.com> |
2 | 2 | |
3 | + * tui/tui-regs.c (tui_data_window::show_register_group): Remove | |
4 | + useless "if". | |
5 | + | |
6 | +2020-07-01 Tom Tromey <tom@tromey.com> | |
7 | + | |
3 | 8 | * tui/tui-regs.c (tui_data_window::show_register_group): Update. |
4 | 9 | * tui/tui-regs.h (struct tui_data_item_window) <name>: Remove. |
5 | 10 |
@@ -257,15 +257,12 @@ tui_data_window::show_register_group (struct reggroup *group, | ||
257 | 257 | continue; |
258 | 258 | |
259 | 259 | data_item_win = &m_regs_content[pos]; |
260 | - if (data_item_win) | |
260 | + if (!refresh_values_only) | |
261 | 261 | { |
262 | - if (!refresh_values_only) | |
263 | - { | |
264 | - data_item_win->item_no = regnum; | |
265 | - data_item_win->highlight = false; | |
266 | - } | |
267 | - tui_get_register (frame, data_item_win, regnum, 0); | |
262 | + data_item_win->item_no = regnum; | |
263 | + data_item_win->highlight = false; | |
268 | 264 | } |
265 | + tui_get_register (frame, data_item_win, regnum, 0); | |
269 | 266 | pos++; |
270 | 267 | } |
271 | 268 | } |