From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 8371F3854156; Wed, 31 Aug 2022 17:14:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8371F3854156 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1661966075; bh=HKStZuwpVg2pe+0XWVAOz8RerHz/JnRJ3joBCwyl9Rw=; h=From:To:Subject:Date:From; b=amFUBcYU/+Sr5t6yp2WKFcDrbFpxWyY+PoRs4Px/9RdzXXT+c4oNNB26EHuJGAu5Q ukiZ1FC8JpyC3QRZ9FLQ9zlTQboBX+Rf8eMmMHM6yF7O19NSruAG9PdF9yArpvj0TC 8YlPiW8LpZTFl+f7d5rZOOL/GwhqfN3YFn/BvmEc= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Remove two unused members from mi_interp X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 334c30c253b8cf27833948386340f83340741a82 X-Git-Newrev: 5a09f120568d433872267887ff844b2278b9c09b Message-Id: <20220831171435.8371F3854156@sourceware.org> Date: Wed, 31 Aug 2022 17:14:35 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D5a09f120568d= 433872267887ff844b2278b9c09b commit 5a09f120568d433872267887ff844b2278b9c09b Author: Tom Tromey Date: Thu Aug 11 10:24:48 2022 -0600 Remove two unused members from mi_interp =20 These members of mi_interp aren't used and can be removed. Diff: --- 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 logg= ing_redirect, } =20 mi->raw_stdout =3D logging_redirect ? logfile_p : tee; - mi->raw_stdlog =3D 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; =20 - /* Raw logfile output. */ - struct ui_file *raw_stdlog; - - /* Save the original value of raw_stdout and raw_stdlog here when loggin= g, 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;