Remove unnecessary block from execute_fn_to_ui_file

I noticed that execute_fn_to_ui_file has an extra, unnecessary block.
This patch removes it.
This commit is contained in:
Tom Tromey 2024-05-18 10:51:35 -06:00
parent ee7af0e710
commit ac38857074

View File

@ -609,20 +609,18 @@ execute_fn_to_ui_file (struct ui_file *file, std::function<void(void)> fn)
scoped_restore save_async = make_scoped_restore (&current_ui->async, 0);
{
ui_out_redirect_pop redirect_popper (current_uiout, file);
ui_out_redirect_pop redirect_popper (current_uiout, file);
scoped_restore save_stdout
= make_scoped_restore (&gdb_stdout, file);
scoped_restore save_stderr
= make_scoped_restore (&gdb_stderr, file);
scoped_restore save_stdlog
= make_scoped_restore (&gdb_stdlog, file);
scoped_restore save_stdtarg
= make_scoped_restore (&gdb_stdtarg, file);
scoped_restore save_stdout
= make_scoped_restore (&gdb_stdout, file);
scoped_restore save_stderr
= make_scoped_restore (&gdb_stderr, file);
scoped_restore save_stdlog
= make_scoped_restore (&gdb_stdlog, file);
scoped_restore save_stdtarg
= make_scoped_restore (&gdb_stdtarg, file);
fn ();
}
fn ();
}
/* See top.h. */