aboutsummaryrefslogtreecommitdiffstats
path: root/strbuf.c
diff options
context:
space:
mode:
authorRené Scharfe <l.s.r@web.de>2023-06-17 22:44:00 +0200
committerJunio C Hamano <gitster@pobox.com>2023-06-18 12:55:30 -0700
commit4416b86c6b34dad64b556bb1eb6711d5e6595a48 (patch)
treed8eae1b68c8afc7556cf2506789e255d4c9817ab /strbuf.c
parent6f1e2d52797161c7effe4d1388765de3dbd80bbf (diff)
downloadgit-4416b86c6b34dad64b556bb1eb6711d5e6595a48.tar.gz
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.c')
-rw-r--r--strbuf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/strbuf.c b/strbuf.c
index c3d1cee616..55a3cfa5cf 100644
--- a/strbuf.c
+++ b/strbuf.c
@@ -427,9 +427,7 @@ int strbuf_expand_step(struct strbuf *sb, const char **formatp)
return 1;
}
-size_t strbuf_expand_literal_cb(struct strbuf *sb,
- const char *placeholder,
- void *context UNUSED)
+size_t strbuf_expand_literal(struct strbuf *sb, const char *placeholder)
{
int ch;