From: Øystein Walle Date: Thu, 30 Mar 2023 11:21:32 +0000 (+0200) Subject: ref-filter: remove unused ref_format member X-Git-Tag: v2.41.0-rc0~94^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4833b084261a77e226b198a86c4f2ed737889f16;p=thirdparty%2Fgit.git ref-filter: remove unused ref_format member use_rest was added in b9dee075eb (ref-filter: add %(rest) atom, 2021-07-26) but was never used. As far as I can tell it was used in a later patch that was submitted to the mailing list but never applied. Signed-off-by: Øystein Walle Signed-off-by: Junio C Hamano --- diff --git a/ref-filter.c b/ref-filter.c index f8203c6b05..5744a55be6 100644 --- a/ref-filter.c +++ b/ref-filter.c @@ -582,7 +582,6 @@ static int rest_atom_parser(struct ref_format *format, struct used_atom *atom, { 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 aa0eea4ecf..0f4183233a 100644 --- a/ref-filter.h +++ b/ref-filter.h @@ -75,7 +75,6 @@ struct ref_format { const char *format; const char *rest; int quote_style; - int use_rest; int use_color; /* Internal state to ref-filter */