ref-filter: drop unused parameters from email_atom_option_parser()

This code was extracted from person_email_atom_parser() in a3d2e83a17
(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 <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jeff King
2024-08-17 03:29:45 -04:00
committed by Junio C Hamano
parent 4756494504
commit 4d7de2cf6e

View File

@@ -742,8 +742,7 @@ static int person_name_atom_parser(struct ref_format *format UNUSED,
return 0; return 0;
} }
static int email_atom_option_parser(struct used_atom *atom, static int email_atom_option_parser(const char **arg)
const char **arg, struct strbuf *err)
{ {
if (!*arg) if (!*arg)
return EO_RAW; return EO_RAW;
@@ -761,7 +760,7 @@ static int person_email_atom_parser(struct ref_format *format UNUSED,
const char *arg, struct strbuf *err) const char *arg, struct strbuf *err)
{ {
for (;;) { for (;;) {
int opt = email_atom_option_parser(atom, &arg, err); int opt = email_atom_option_parser(&arg);
const char *bad_arg = arg; const char *bad_arg = arg;
if (opt < 0) if (opt < 0)