summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-04-06 22:38:32 +0200
committerJunio C Hamano <gitster@pobox.com>2023-04-06 22:38:32 +0200
commitc5305bbe322edfadd746c162f8af090a227019b7 (patch)
treeaa23586bde24c2c65069ce927b2c37a688667b2d
parentMerge branch 'jk/chainlint-fixes' (diff)
parentref-filter: remove unused ref_format member (diff)
downloadgit-c5305bbe322edfadd746c162f8af090a227019b7.tar.xz
git-c5305bbe322edfadd746c162f8af090a227019b7.zip
Merge branch 'ow/ref-format-remove-unused-member'
Code clean-up. * ow/ref-format-remove-unused-member: ref-filter: remove unused ref_format member
-rw-r--r--ref-filter.c1
-rw-r--r--ref-filter.h1
2 files changed, 0 insertions, 2 deletions
diff --git a/ref-filter.c b/ref-filter.c
index 94a148c3e8..72175612f3 100644
--- a/ref-filter.c
+++ b/ref-filter.c
@@ -599,7 +599,6 @@ static int rest_atom_parser(struct ref_format *format,
{
if (arg)
return err_no_arg(err, "rest");
- format->use_rest = 1;
return 0;
}
diff --git a/ref-filter.h b/ref-filter.h
index 9169d12cb6..430701cfb7 100644
--- a/ref-filter.h
+++ b/ref-filter.h
@@ -83,7 +83,6 @@ struct ref_format {
const char *format;
const char *rest;
int quote_style;
- int use_rest;
int use_color;
/* Internal state to ref-filter */