From 4416b86c6b34dad64b556bb1eb6711d5e6595a48 Mon Sep 17 00:00:00 2001 From: René Scharfe Date: Sat, 17 Jun 2023 22:44:00 +0200 Subject: strbuf: simplify strbuf_expand_literal_cb() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Now that strbuf_expand_literal_cb() is no longer used as a callback, drop its "_cb" name suffix and unused context parameter. Signed-off-by: René Scharfe Signed-off-by: Junio C Hamano --- strbuf.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'strbuf.h') diff --git a/strbuf.h b/strbuf.h index 95e50e243e..b1eab015f0 100644 --- a/strbuf.h +++ b/strbuf.h @@ -320,11 +320,9 @@ const char *strbuf_join_argv(struct strbuf *buf, int argc, /** * Used with `strbuf_expand_step` to expand the literals %n and %x * followed by two hexadecimal digits. Returns the number of recognized - * characters. The context argument is ignored. + * characters. */ -size_t strbuf_expand_literal_cb(struct strbuf *sb, - const char *placeholder, - void *context); +size_t strbuf_expand_literal(struct strbuf *sb, const char *placeholder); /** * If the string pointed to by `formatp` contains a percent sign ("%"), -- cgit v1.3-6-g1900