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 <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Jan 24, 2019 at 08:11 UTC
74f8a9c9543aeb19d9af145d8be4acc2198c5b7e
1 file changed
+2
-3
apply.c
+2
-3
@@ -467,7 +467,6 @@ static char *squash_slash(char *name)
467
468
static char *find_name_gnu(struct apply_state *state,
469
const char *line,
470
- const char *def,
470
int p_value)
471
{
472
struct strbuf name = STRBUF_INIT;
@@ -714,7 +713,7 @@ static char *find_name(struct apply_state *state,
713
int terminate)
714
{
715
if (*line == '"') {
717
- char *name = find_name_gnu(state, line, def, p_value);
716
+ char *name = find_name_gnu(state, line, p_value);
717
if (name)
718
return name;
719
}
@@ -731,7 +730,7 @@ static char *find_name_traditional(struct apply_state *state,
730
size_t date_len;
731
732
if (*line == '"') {
734
- char *name = find_name_gnu(state, line, def, p_value);
733
+ char *name = find_name_gnu(state, line, p_value);
734
if (name)
735
return name;
736
}