diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-02-07 07:05:23 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-02-07 07:05:23 +0100 |
commit | b2fc9d2fb02782a20d4370d7989be8b0a54f1017 (patch) | |
tree | 9771fd700c2e746ddee794f0c89b69004ad3950f /apply.c | |
parent | Merge branch 'nd/the-index-final' (diff) | |
parent | convert: drop path parameter from actual conversion functions (diff) | |
download | git-b2fc9d2fb02782a20d4370d7989be8b0a54f1017.tar.xz git-b2fc9d2fb02782a20d4370d7989be8b0a54f1017.zip |
Merge branch 'jk/unused-parameter-cleanup'
Code cleanup.
* jk/unused-parameter-cleanup:
convert: drop path parameter from actual conversion functions
convert: drop len parameter from conversion checks
config: drop unused parameter from maybe_remove_section()
show_date_relative(): drop unused "tz" parameter
column: drop unused "opts" parameter in item_length()
create_bundle(): drop unused "header" parameter
apply: drop unused "def" parameter from find_name_gnu()
match-trees: drop unused path parameter from score functions
Diffstat (limited to 'apply.c')
-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; } |