test-date: drop unused "now" parameter from parse_dates()

We only need the current time for relative dates like "5 minutes ago", and those are parsed only through approxidate, not the strict parser used by parse_dates(). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jeff King committed Mar 20, 2019 at 04:14 UTC 04c4c766ec8252674496ab232b63c1860bcbc0a9
1 file changed +2 -2
t/helper/test-date.c
+2 -2
@@ -55,7 +55,7 @@ static void show_dates(const char **argv, const char *format)
55 }
56 }
57
58 -static void parse_dates(const char **argv, struct timeval *now)
58 +static void parse_dates(const char **argv)
59 {
60 struct strbuf result = STRBUF_INIT;
61
@@ -124,7 +124,7 @@ int cmd__date(int argc, const char **argv)
124 else if (skip_prefix(*argv, "show:", &x))
125 show_dates(argv+1, x);
126 else if (!strcmp(*argv, "parse"))
127 - parse_dates(argv+1, &now);
127 + parse_dates(argv+1);
128 else if (!strcmp(*argv, "approxidate"))
129 parse_approxidate(argv+1, &now);
130 else if (!strcmp(*argv, "timestamp"))