]> git.ipfire.org Git - thirdparty/git.git/commitdiff
ref-filter: remove unused ref_format member
authorØystein Walle <oystwa@gmail.com>
Thu, 30 Mar 2023 11:21:32 +0000 (13:21 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 30 Mar 2023 17:17:49 +0000 (10:17 -0700)
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 <oystwa@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ref-filter.c
ref-filter.h

index f8203c6b05254b624cf98e6d4590d07064cbb101..5744a55be61dcf599d374791fd774683d65b1298 100644 (file)
@@ -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;
 }
 
index aa0eea4ecf591edd0620dc47db0e0bfc3e5c4208..0f4183233abf56b64945db80ff1424b1d77bd45a 100644 (file)
@@ -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 */