From 5a09f120568d433872267887ff844b2278b9c09b Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 11 Aug 2022 10:24:48 -0600 Subject: [PATCH] Remove two unused members from mi_interp These members of mi_interp aren't used and can be removed. --- gdb/mi/mi-interp.c | 1 - gdb/mi/mi-interp.h | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index ed097cf5d5f..dbf71185ea7 100644 --- a/gdb/mi/mi-interp.c +++ b/gdb/mi/mi-interp.c @@ -1297,7 +1297,6 @@ mi_interp::set_logging (ui_file_up logfile, bool logging_redirect, } mi->raw_stdout = logging_redirect ? logfile_p : tee; - mi->raw_stdlog = debug_redirect ? logfile_p : tee; } else { diff --git a/gdb/mi/mi-interp.h b/gdb/mi/mi-interp.h index adf6eaffef4..d89439f54c5 100644 --- a/gdb/mi/mi-interp.h +++ b/gdb/mi/mi-interp.h @@ -52,14 +52,10 @@ public: /* Raw console output. */ struct ui_file *raw_stdout; - /* Raw logfile output. */ - struct ui_file *raw_stdlog; - - /* Save the original value of raw_stdout and raw_stdlog here when logging, and - the file which we need to delete, so we can restore correctly when + /* Save the original value of raw_stdout here when logging, and the + file which we need to delete, so we can restore correctly when done. */ struct ui_file *saved_raw_stdout; - struct ui_file *saved_raw_stdlog; struct ui_file *saved_raw_file_to_delete; -- 2.30.2