Skip to content

Commit 4833b08

Browse files
Ossegitster
authored andcommitted
ref-filter: remove unused ref_format member
use_rest was added in b9dee07 (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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 73876f4 commit 4833b08

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

ref-filter.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -582,7 +582,6 @@ static int rest_atom_parser(struct ref_format *format, struct used_atom *atom,
582582
{
583583
if (arg)
584584
return err_no_arg(err, "rest");
585-
format->use_rest = 1;
586585
return 0;
587586
}
588587

ref-filter.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ struct ref_format {
7575
const char *format;
7676
const char *rest;
7777
int quote_style;
78-
int use_rest;
7978
int use_color;
8079

8180
/* Internal state to ref-filter */

0 commit comments

Comments
 (0)