From: Tom Tromey Date: Mon, 20 Mar 2023 18:26:23 +0000 (-0600) Subject: Remove mi_version function X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=145674b32572f848bd17d034e6babb1449ee1896;p=binutils-gdb.git Remove mi_version function 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. Approved-By: Simon Marchi --- 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 (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 @@ private: 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);