diff options
author | René Scharfe <l.s.r@web.de> | 2023-06-17 23:44:00 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-06-18 22:55:30 +0300 |
commit | 4416b86c6b34dad64b556bb1eb6711d5e6595a48 (patch) | |
tree | d8eae1b68c8afc7556cf2506789e255d4c9817ab /strbuf.h | |
parent | 6f1e2d52797161c7effe4d1388765de3dbd80bbf (diff) |
strbuf: simplify strbuf_expand_literal_cb()
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 <l.s.r@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'strbuf.h')
-rw-r--r-- | strbuf.h | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -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 ("%"), |