Remove mi_version function
Commit Message
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(-)
Comments
On 3/20/23 14:27, Tom Tromey via Gdb-patches wrote:
> 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.
LGTM:
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Simon
@@ -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)
{
@@ -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);