Skip to content

Commit 74f8a9c

Browse files
peffgitster
authored andcommitted
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>
1 parent 667f71c commit 74f8a9c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

apply.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,6 @@ static char *squash_slash(char *name)
467467

468468
static char *find_name_gnu(struct apply_state *state,
469469
const char *line,
470-
const char *def,
471470
int p_value)
472471
{
473472
struct strbuf name = STRBUF_INIT;
@@ -714,7 +713,7 @@ static char *find_name(struct apply_state *state,
714713
int terminate)
715714
{
716715
if (*line == '"') {
717-
char *name = find_name_gnu(state, line, def, p_value);
716+
char *name = find_name_gnu(state, line, p_value);
718717
if (name)
719718
return name;
720719
}
@@ -731,7 +730,7 @@ static char *find_name_traditional(struct apply_state *state,
731730
size_t date_len;
732731

733732
if (*line == '"') {
734-
char *name = find_name_gnu(state, line, def, p_value);
733+
char *name = find_name_gnu(state, line, p_value);
735734
if (name)
736735
return name;
737736
}

0 commit comments

Comments
 (0)