[binutils-gdb] Remove "prefix" argument from cp_type_print_method_args
Tom Tromey via Gdb-cvs <[email protected]>
| Newsgroups | gmane.comp.gdb.cvs |
|---|---|
| Message-ID | <[email protected]> |
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bf5c46cb2331974365838b1f3c14a46136fc2f44 commit bf5c46cb2331974365838b1f3c14a46136fc2f44 Author: Tom Tromey <[email protected]> Date: Thu Jan 8 16:56:57 2026 -0700 Remove "prefix" argument from cp_type_print_method_args The "prefix" argument to cp_type_print_method_args is only ever the empty string, so it can be removed. Approved-By: Simon Marchi <[email protected]> Diff: --- gdb/c-typeprint.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index 821b78becf4..e418aca56a4 100644 --- a/gdb/c-typeprint.c +++ b/gdb/c-typeprint.c @@ -244,7 +244,7 @@ cp_type_print_derivation_info (struct ui_file *stream, /* Print the C++ method arguments ARGS to the file STREAM. */ static void -cp_type_print_method_args (struct type *mtype, const char *prefix, +cp_type_print_method_args (struct type *mtype, const char *varstring, int staticp, struct ui_file *stream, enum language language, @@ -255,8 +255,6 @@ cp_type_print_method_args (struct type *mtype, const char *prefix, int varargs = mtype->has_varargs (); int i; - fprintf_symbol (stream, prefix, - language_cplus, DMGL_ANSI); fprintf_symbol (stream, varstring, language_cplus, DMGL_ANSI); gdb_puts ("(", stream); @@ -1164,7 +1162,6 @@ c_type_print_base_struct_union (struct type *type, struct ui_file *stream, struct type *mtype = TYPE_FN_FIELD_TYPE (f, j); cp_type_print_method_args (mtype, - "", method_name, staticp, stream, language,