diff options
author | Jeff King <peff@peff.net> | 2019-01-24 08:11:42 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-01-24 12:35:44 -0800 |
commit | 74f8a9c9543aeb19d9af145d8be4acc2198c5b7e (patch) | |
tree | c86de22bdb3832e08116b2a8116c434167dff726 | |
parent | match-trees: drop unused path parameter from score functions (diff) | |
download | tgif-74f8a9c9543aeb19d9af145d8be4acc2198c5b7e.tar.xz |
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>
-rw-r--r-- | apply.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; } |