ref-filter: drop unused "obj" parameters
authorJeff King <peff@peff.net>
Thu, 14 Feb 2019 05:50:58 +0000 (00:50 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 14 Feb 2019 23:26:15 +0000 (15:26 -0800)
commit25051cac802b01a588f8170e96f97bf17869177a
tree6cc25597f9a2994603f9550060b63467d4d958c7
parente0329199a7b40372dec50a1bc1c497f5fbb2ddbc
ref-filter: drop unused "obj" parameters

The grab_person() and grab_sub_body_contents() functions take both an
object struct and a buf/sz pair of the object bytes. However, they use
only the latter, since "struct object" does not contain the parsed ident
(nor the whole commit message, of course).

Let's get rid of these misleading "struct object" parameters. It's
possible we may want them in the future (e.g., to generate error
messages that mention the object id), but since these are static
functions, we can easily add them back in later (and if we do want that
information, it's likely we'd pass it through a more generalized
"parsing context" struct anyway).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
ref-filter.c