From: Swen Schillig Date: Fri, 11 Jan 2019 08:26:29 +0000 (+0100) Subject: lib: remove unused function nttime_from_string() X-Git-Tag: talloc-2.1.15~140 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a2f718fb753b7ee38e30acebb02ef931a89f279f;p=thirdparty%2Fsamba.git lib: remove unused function nttime_from_string() Signed-off-by: Swen Schillig Reviewed-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/lib/util/time.h b/lib/util/time.h index 9b897eb4b6c..1988b330576 100644 --- a/lib/util/time.h +++ b/lib/util/time.h @@ -180,11 +180,6 @@ void push_nttime(uint8_t *base, uint16_t offset, NTTIME t); */ NTTIME pull_nttime(uint8_t *base, uint16_t offset); -/** - parse a nttime as a large integer in a string and return a NTTIME -*/ -NTTIME nttime_from_string(const char *s); - /** return (tv1 - tv2) in microseconds */ diff --git a/source3/lib/time.c b/source3/lib/time.c index 30ad1ec9a01..6b864253a91 100644 --- a/source3/lib/time.c +++ b/source3/lib/time.c @@ -36,15 +36,6 @@ #define TIME_FIXUP_CONSTANT_INT 11644473600LL #endif - -/** - parse a nttime as a large integer in a string and return a NTTIME -*/ -NTTIME nttime_from_string(const char *s) -{ - return strtoull(s, NULL, 0); -} - /************************************************************** Handle conversions between time_t and uint32, taking care to preserve the "special" values.