diff options
author | Tom Tromey <tromey@adacore.com> | 2023-03-20 12:26:23 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-03-20 13:13:12 -0600 |
commit | 145674b32572f848bd17d034e6babb1449ee1896 (patch) | |
tree | a4658829fb8cdd25a29d81f5df0554b168f40039 /gdb/mi | |
parent | 505ca0bfa52845fb7793b9f2a808c7c5aa4677fd (diff) | |
download | gdb-145674b32572f848bd17d034e6babb1449ee1896.zip gdb-145674b32572f848bd17d034e6babb1449ee1896.tar.gz gdb-145674b32572f848bd17d034e6babb1449ee1896.tar.bz2 |
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 <simon.marchi@efficios.com>
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-out.c | 6 | ||||
-rw-r--r-- | gdb/mi/mi-out.h | 1 |
2 files changed, 0 insertions, 7 deletions
diff --git a/gdb/mi/mi-out.c b/gdb/mi/mi-out.c index 5ce24a3..29a416a 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 b63492f..10c9f8a 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); |