public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@adacore.com>
To: gdb-patches@sourceware.org
Cc: Tom Tromey <tromey@adacore.com>
Subject: [PATCH] Remove mi_version function
Date: Mon, 20 Mar 2023 12:27:02 -0600	[thread overview]
Message-ID: <20230320182702.1531494-1-tromey@adacore.com> (raw)

The mi_version function is unused, and I think it's better overall if
it is never used.  This patch removes it.  Tested by rebuilding.
---
 gdb/mi/mi-out.c | 6 ------
 gdb/mi/mi-out.h | 1 -
 2 files changed, 7 deletions(-)

diff --git a/gdb/mi/mi-out.c b/gdb/mi/mi-out.c
index 5ce24a30999..29a416a426d 100644
--- a/gdb/mi/mi-out.c
+++ b/gdb/mi/mi-out.c
@@ -360,12 +360,6 @@ as_mi_ui_out (ui_out *uiout)
   return gdb::checked_static_cast<mi_ui_out *> (uiout);
 }
 
-int
-mi_version (ui_out *uiout)
-{
-  return as_mi_ui_out (uiout)->version ();
-}
-
 void
 mi_out_put (ui_out *uiout, struct ui_file *stream)
 {
diff --git a/gdb/mi/mi-out.h b/gdb/mi/mi-out.h
index b63492f459c..10c9f8a4585 100644
--- a/gdb/mi/mi-out.h
+++ b/gdb/mi/mi-out.h
@@ -145,7 +145,6 @@ class mi_ui_out : public ui_out
    Return nullptr if an invalid version is provided.  */
 mi_ui_out *mi_out_new (const char *mi_version);
 
-int mi_version (ui_out *uiout);
 void mi_out_put (ui_out *uiout, struct ui_file *stream);
 void mi_out_rewind (ui_out *uiout);
 
-- 
2.39.1


             reply	other threads:[~2023-03-20 18:27 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-20 18:27 Tom Tromey [this message]
2023-03-20 18:38 ` Simon Marchi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230320182702.1531494-1-tromey@adacore.com \
    --to=tromey@adacore.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).