From: Tom Tromey <tom@tromey.com>
To: gdb-patches@sourceware.org
Cc: Tom Tromey <tom@tromey.com>
Subject: [PATCH] Remove "prefix" argument from cp_type_print_method_args
Date: Fri, 17 Apr 2026 20:10:30 -0600 [thread overview]
Message-ID: <20260418021030.2629194-1-tom@tromey.com> (raw)
The "prefix" argument to cp_type_print_method_args is only ever the
empty string, so it can be removed.
---
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,
--
2.49.0
next reply other threads:[~2026-04-18 2:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-18 2:10 Tom Tromey [this message]
2026-04-18 2:32 ` Simon Marchi
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260418021030.2629194-1-tom@tromey.com \
--to=tom@tromey.com \
--cc=gdb-patches@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox