Skip to content

Commit 4d7de2c

Browse files
peffgitster
authored andcommitted
ref-filter: drop unused parameters from email_atom_option_parser()
This code was extracted from person_email_atom_parser() in a3d2e83 (ref-filter: add mailmap support, 2023-09-25), but the part that was extracted doesn't care about the atom struct or the error strbuf. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4756494 commit 4d7de2c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

ref-filter.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -742,8 +742,7 @@ static int person_name_atom_parser(struct ref_format *format UNUSED,
742742
return 0;
743743
}
744744

745-
static int email_atom_option_parser(struct used_atom *atom,
746-
const char **arg, struct strbuf *err)
745+
static int email_atom_option_parser(const char **arg)
747746
{
748747
if (!*arg)
749748
return EO_RAW;
@@ -761,7 +760,7 @@ static int person_email_atom_parser(struct ref_format *format UNUSED,
761760
const char *arg, struct strbuf *err)
762761
{
763762
for (;;) {
764-
int opt = email_atom_option_parser(atom, &arg, err);
763+
int opt = email_atom_option_parser(&arg);
765764
const char *bad_arg = arg;
766765

767766
if (opt < 0)

0 commit comments

Comments
 (0)