aboutsummaryrefslogtreecommitdiffstats
path: root/t/helper/test-ref-store.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-07-25 12:05:24 -0700
committerJunio C Hamano <gitster@pobox.com>2023-07-25 12:05:24 -0700
commitc5fcd34e1bfabde14dff226ad92aca9c39d67391 (patch)
tree9d5e641fa51c7398b844742319e5d88f633b6b9a /t/helper/test-ref-store.c
parentMerge branch 'dk/bundle-i18n-more' (diff)
parentt/helper: mark unused callback void data parameters (diff)
downloadgit-c5fcd34e1bfabde14dff226ad92aca9c39d67391.tar.gz
git-c5fcd34e1bfabde14dff226ad92aca9c39d67391.zip
Merge branch 'jk/unused-parameter'
Mark-up unused parameters in the code so that we can eventually enable -Wunused-parameter by default. * jk/unused-parameter: t/helper: mark unused callback void data parameters tag: mark unused parameters in each_tag_name_fn callbacks rev-parse: mark unused parameter in for_each_abbrev callback replace: mark unused parameter in each_mergetag_fn callback replace: mark unused parameter in ref callback merge-tree: mark unused parameter in traverse callback fsck: mark unused parameters in various fsck callbacks revisions: drop unused "opt" parameter in "tweak" callbacks count-objects: mark unused parameter in alternates callback am: mark unused keep_cr parameters http-push: mark unused parameter in xml callback http: mark unused parameters in curl callbacks do_for_each_ref_helper(): mark unused repository parameter test-ref-store: drop unimplemented reflog-expire command
Diffstat (limited to 't/helper/test-ref-store.c')
-rw-r--r--t/helper/test-ref-store.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/t/helper/test-ref-store.c b/t/helper/test-ref-store.c
index 13865425dd..48552e6a9e 100644
--- a/t/helper/test-ref-store.c
+++ b/t/helper/test-ref-store.c
@@ -277,11 +277,6 @@ static int cmd_delete_reflog(struct ref_store *refs, const char **argv)
return refs_delete_reflog(refs, refname);
}
-static int cmd_reflog_expire(struct ref_store *refs, const char **argv)
-{
- die("not supported yet");
-}
-
static int cmd_delete_ref(struct ref_store *refs, const char **argv)
{
const char *msg = notnull(*argv++, "msg");
@@ -336,7 +331,6 @@ static struct command commands[] = {
{ "reflog-exists", cmd_reflog_exists },
{ "create-reflog", cmd_create_reflog },
{ "delete-reflog", cmd_delete_reflog },
- { "reflog-expire", cmd_reflog_expire },
/*
* backend transaction functions can't be tested separately
*/