fast-export: drop unused parameter from anonymize_commit_message()

As the comment above the function indicates, we do not bother actually storing commit messages in our anonymization map. But we still take the message as a parameter, and just ignore it. Let's stop doing that, which will make -Wunused-parameter happier. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Mar 22, 2023 at 13:43 UTC d051f1718e5e5692d096778f2c7f497fc0dae8b6
1 file changed +2 -2
builtin/fast-export.c
+2 -2
@@ -556,7 +556,7 @@ static const char *anonymize_refname(const char *refname)
556 * We do not even bother to cache commit messages, as they are unlikely
557 * to be repeated verbatim, and it is not that interesting when they are.
558 */
559 -static char *anonymize_commit_message(const char *old)
559 +static char *anonymize_commit_message(void)
560 {
561 static int counter;
562 return xstrfmt("subject %d\n\nbody\n", counter++);
@@ -683,7 +683,7 @@ static void handle_commit(struct commit *commit, struct rev_info *rev,
683
684 mark_next_object(&commit->object);
685 if (anonymize) {
686 - reencoded = anonymize_commit_message(message);
686 + reencoded = anonymize_commit_message();
687 } else if (encoding) {
688 switch(reencode_mode) {
689 case REENCODE_YES: