test-date: drop unused parameter to getnanos()
commitba285a712d8bc036d8f0d4625710305711b3c2cb
authorJeff King <peff@peff.net>
Wed, 6 Feb 2019 19:35:52 +0000 (6 14:35 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 6 Feb 2019 20:17:10 +0000 (6 12:17 -0800)
tree06bce07b4eea449d668520f10503100281cd0545
parentb819f1d2cec91e8c81b4d92ec787979ab2721aa6
test-date: drop unused parameter to getnanos()

The getnanos() helper always gets the current time from our
getnanotime() facility. The caller cannot override it via TEST_DATE_NOW,
and hence we simply ignore the "now" parameter to the function. Let's
remove it, as it may mislead callers into thinking it does something.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-date.c