]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove "prefix" argument from cp_type_print_method_args
authorTom Tromey <tom@tromey.com>
Thu, 8 Jan 2026 23:56:57 +0000 (16:56 -0700)
committerTom Tromey <tom@tromey.com>
Sat, 18 Apr 2026 16:36:10 +0000 (10:36 -0600)
The "prefix" argument to cp_type_print_method_args is only ever the
empty string, so it can be removed.

Approved-By: Simon Marchi <simon.marchi@efficios.com>
gdb/c-typeprint.c

index 821b78becf416a1cf3e255edd8d7c0ae25581ad4..e418aca56a4a77a8482c591ffadd0e8b43b2c923 100644 (file)
@@ -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,