summaryrefslogtreecommitdiff
path: root/parse-options.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2019-04-25 07:41:12 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-04-25 07:41:12 (GMT)
commit4284497396eb52b2c096c2f442b70a52138b6e1b (patch)
treef4112d331419c9d0a59dc993e2f6638cd2f7fd8e /parse-options.c
parent579b75ad9530827fe00740b8551963f16f279c40 (diff)
parent95be717cd5a5d4956a5152210176e598cf49ec75 (diff)
downloadgit-4284497396eb52b2c096c2f442b70a52138b6e1b.zip
git-4284497396eb52b2c096c2f442b70a52138b6e1b.tar.gz
git-4284497396eb52b2c096c2f442b70a52138b6e1b.tar.bz2
Merge branch 'jk/unused-params-even-more'
Code cleanup. * jk/unused-params-even-more: parse_opt_ref_sorting: always use with NONEG flag pretty: drop unused strbuf from parse_padding_placeholder() pretty: drop unused "type" parameter in needs_rfc2047_encoding() parse-options: drop unused ctx parameter from show_gitcomp() fetch_pack(): drop unused parameters report_path_error(): drop unused prefix parameter unpack-trees: drop unused error_type parameters unpack-trees: drop name_entry from traverse_by_cache_tree() test-date: drop unused "now" parameter from parse_dates() update-index: drop unused prefix_length parameter from do_reupdate() log: drop unused "len" from show_tagger() log: drop unused rev_info from early output revision: drop some unused "revs" parameters
Diffstat (limited to 'parse-options.c')
-rw-r--r--parse-options.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/parse-options.c b/parse-options.c
index acc3a93..bf2037f 100644
--- a/parse-options.c
+++ b/parse-options.c
@@ -529,8 +529,7 @@ static void show_negated_gitcomp(const struct option *opts, int nr_noopts)
}
}
-static int show_gitcomp(struct parse_opt_ctx_t *ctx,
- const struct option *opts)
+static int show_gitcomp(const struct option *opts)
{
const struct option *original_opts = opts;
int nr_noopts = 0;
@@ -609,7 +608,7 @@ int parse_options_step(struct parse_opt_ctx_t *ctx,
/* lone --git-completion-helper is asked by git-completion.bash */
if (ctx->total == 1 && !strcmp(arg + 1, "-git-completion-helper"))
- return show_gitcomp(ctx, options);
+ return show_gitcomp(options);
if (arg[1] != '-') {
ctx->opt = arg + 1;