From 5c2aa930515d1cdae00bccd0be88422bf6a3511e Mon Sep 17 00:00:00 2001 From: James Date: Sat, 30 Mar 2019 19:56:50 +1000 Subject: [PATCH] remove unused UnixMicro and UnixMilli functions; resolves #12 --- util.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/util.go b/util.go index ab34034..a8fdb0d 100644 --- a/util.go +++ b/util.go @@ -119,22 +119,6 @@ func (a *Arlo) DownloadFile(url string, w io.Writer) error { return nil } -func UnixMicro(t time.Time) int64 { - ns := t.UnixNano() - if ns < 0 { - return (ns - 999) / 1000 - } - return ns / 1000 -} - -func UnixMilli(t time.Time) int64 { - ns := t.UnixNano() - if ns < 0 { - return (ns - 999999) / 1000000 - } - return ns / 1000000 -} - func FromUnixMicro(µs int64) time.Time { return time.Unix(0, 1000*µs) } func FromUnixMilli(ms int64) time.Time { return time.Unix(0, 1000000*ms) }