diff options
author | Tom Tromey <tom@tromey.com> | 2019-06-23 16:38:06 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-06-25 07:48:52 -0600 |
commit | c2fc64f54ef82ccd2fedc9078c539ad273e83a0b (patch) | |
tree | e4c78d8a252a955eb7ee3bd6dfcc0aeebdb6e4ae /gdb/tui/tui-wingeneral.c | |
parent | fb54fa768d148ccd07f2b27ae26e87d95605986c (diff) | |
download | fsf-binutils-gdb-c2fc64f54ef82ccd2fedc9078c539ad273e83a0b.zip fsf-binutils-gdb-c2fc64f54ef82ccd2fedc9078c539ad273e83a0b.tar.gz fsf-binutils-gdb-c2fc64f54ef82ccd2fedc9078c539ad273e83a0b.tar.bz2 |
Tidy tui_delete_win
tui_delete_win does its own NULL check, so ~tui_gen_win_info does not
need to do it. Also, tui_delete_win has an extraneous "return".
gdb/ChangeLog
2019-06-25 Tom Tromey <tom@tromey.com>
* tui/tui-wingeneral.c (tui_delete_win): Remove "return".
* tui/tui-data.c (~tui_gen_win_info): Remove "if".
Diffstat (limited to 'gdb/tui/tui-wingeneral.c')
-rw-r--r-- | gdb/tui/tui-wingeneral.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/gdb/tui/tui-wingeneral.c b/gdb/tui/tui-wingeneral.c index 13063ae..cf8d9fc 100644 --- a/gdb/tui/tui-wingeneral.c +++ b/gdb/tui/tui-wingeneral.c @@ -63,8 +63,6 @@ tui_delete_win (WINDOW *window) { if (window != NULL) delwin (window); - - return; } |