From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id 6F6D43858C50; Tue, 29 Mar 2022 19:43:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6F6D43858C50 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 vfprintf_styled X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 7e9e74b6a8ac919227fc4432e01745217665762b X-Git-Newrev: 179d59a3ee651b593e887367553515e64cdc5cde Message-Id: <20220329194326.6F6D43858C50@sourceware.org> Date: Tue, 29 Mar 2022 19:43:26 +0000 (GMT) X-BeenThere: gdb-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Mar 2022 19:43:26 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D179d59a3ee65= 1b593e887367553515e64cdc5cde commit 179d59a3ee651b593e887367553515e64cdc5cde Author: Tom Tromey Date: Sun Jan 2 13:56:42 2022 -0700 Remove vfprintf_styled =20 Nothing calls vfprintf_styled any more, so remove it. Diff: --- gdb/utils.c | 11 ----------- gdb/utils.h | 6 ------ 2 files changed, 17 deletions(-) diff --git a/gdb/utils.c b/gdb/utils.c index bc0cdd05755..8d3a89cf036 100644 --- a/gdb/utils.c +++ b/gdb/utils.c @@ -1837,17 +1837,6 @@ fprintf_styled (struct ui_file *stream, const ui_fil= e_style &style, stream->emit_style_escape (ui_file_style ()); } =20 -/* See utils.h. */ - -void -vfprintf_styled (struct ui_file *stream, const ui_file_style &style, - const char *format, va_list args) -{ - stream->emit_style_escape (style); - gdb_vprintf (stream, format, args); - stream->emit_style_escape (ui_file_style ()); -} - void gdb_printf (const char *format, ...) { diff --git a/gdb/utils.h b/gdb/utils.h index 71a034935cf..3d057466912 100644 --- a/gdb/utils.h +++ b/gdb/utils.h @@ -271,12 +271,6 @@ extern void fprintf_styled (struct ui_file *stream, ...) ATTRIBUTE_PRINTF (3, 4); =20 -extern void vfprintf_styled (struct ui_file *stream, - const ui_file_style &style, - const char *fmt, - va_list args) - ATTRIBUTE_PRINTF (3, 0); - /* Like gdb_puts, but styles the output according to STYLE, when appropriate. */