mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-03 21:34:46 +08:00
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".
This commit is contained in:
@ -1,3 +1,8 @@
|
||||
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".
|
||||
|
||||
2019-06-25 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* tui/tui-layout.c (init_and_make_win): Assert on unrecognized
|
||||
|
@ -350,11 +350,7 @@ tui_source_window_base::tui_source_window_base (enum tui_win_type type)
|
||||
|
||||
tui_gen_win_info::~tui_gen_win_info ()
|
||||
{
|
||||
if (handle != NULL)
|
||||
{
|
||||
tui_delete_win (handle);
|
||||
handle = NULL;
|
||||
}
|
||||
tui_delete_win (handle);
|
||||
xfree (title);
|
||||
}
|
||||
|
||||
|
@ -63,8 +63,6 @@ tui_delete_win (WINDOW *window)
|
||||
{
|
||||
if (window != NULL)
|
||||
delwin (window);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user