From: Jeff King Date: Thu, 24 Jan 2019 13:11:42 +0000 (-0500) Subject: apply: drop unused "def" parameter from find_name_gnu() X-Git-Tag: v2.21.0-rc0~22^2~6 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/74f8a9c9543aeb19d9af145d8be4acc2198c5b7e apply: drop unused "def" parameter from find_name_gnu() We use the "def" parameter in find_name_common() for some heuristics, but they are not necessary with the less-ambiguous GNU format. Let's drop this unused parameter. Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/apply.c b/apply.c index 3703bfc8d0..ccab7e7907 100644 --- a/apply.c +++ b/apply.c @@ -467,7 +467,6 @@ static char *squash_slash(char *name) static char *find_name_gnu(struct apply_state *state, const char *line, - const char *def, int p_value) { struct strbuf name = STRBUF_INIT; @@ -714,7 +713,7 @@ static char *find_name(struct apply_state *state, int terminate) { if (*line == '"') { - char *name = find_name_gnu(state, line, def, p_value); + char *name = find_name_gnu(state, line, p_value); if (name) return name; } @@ -731,7 +730,7 @@ static char *find_name_traditional(struct apply_state *state, size_t date_len; if (*line == '"') { - char *name = find_name_gnu(state, line, def, p_value); + char *name = find_name_gnu(state, line, p_value); if (name) return name; }