diff options
author | Tom Tromey <tom@tromey.com> | 2019-06-28 23:35:31 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-07-17 12:19:12 -0600 |
commit | 801109578cd2a6ebd690dd23f0d4a1f4a67aee09 (patch) | |
tree | b3b6f4e487c4e6d40aa4011bf35e91a02f269579 /gdb/solib-spu.c | |
parent | cf82af058d2f1488d8f8a096d7e3b76d1d5a4f46 (diff) | |
download | gdb-801109578cd2a6ebd690dd23f0d4a1f4a67aee09.zip gdb-801109578cd2a6ebd690dd23f0d4a1f4a67aee09.tar.gz gdb-801109578cd2a6ebd690dd23f0d4a1f4a67aee09.tar.bz2 |
Remove some dead code from tui_set_layout
tui_set_layout sets regs_populate using:
regs_populate = (new_layout == SRC_DATA_COMMAND
|| new_layout == DISASSEM_DATA_COMMAND);
Then later it checks this variable:
if (!regs_populate
&& (new_layout == SRC_DATA_COMMAND
|| new_layout == DISASSEM_DATA_COMMAND))
However, this is equivalent to "!regs_populate && regs_populate",
which can never be true. So, remove the dead code and the variable.
gdb/ChangeLog
2019-07-17 Tom Tromey <tom@tromey.com>
* tui/tui-layout.c (tui_set_layout): Remove regs_populate
variable.
Diffstat (limited to 'gdb/solib-spu.c')
0 files changed, 0 insertions, 0 deletions