From 25ef3a281b04e2dc19ae3fddce4ecc97d045c124 Mon Sep 17 00:00:00 2001 From: Lars Lehtonen Date: Wed, 19 Feb 2020 12:46:49 -0800 Subject: [PATCH] backend/azureblob: remove unused Object.parseTimeString() --- backend/azureblob/azureblob.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/backend/azureblob/azureblob.go b/backend/azureblob/azureblob.go index 224c82e2b..62a4284f1 100644 --- a/backend/azureblob/azureblob.go +++ b/backend/azureblob/azureblob.go @@ -16,7 +16,6 @@ import ( "net/http" "net/url" "path" - "strconv" "strings" "sync" "time" @@ -1121,22 +1120,6 @@ func (o *Object) readMetaData() (err error) { return o.decodeMetaDataFromPropertiesResponse(blobProperties) } -// parseTimeString converts a decimal string number of milliseconds -// elapsed since January 1, 1970 UTC into a time.Time and stores it in -// the modTime variable. -func (o *Object) parseTimeString(timeString string) (err error) { - if timeString == "" { - return nil - } - unixMilliseconds, err := strconv.ParseInt(timeString, 10, 64) - if err != nil { - fs.Debugf(o, "Failed to parse mod time string %q: %v", timeString, err) - return err - } - o.modTime = time.Unix(unixMilliseconds/1e3, (unixMilliseconds%1e3)*1e6).UTC() - return nil -} - // ModTime returns the modification time of the object // // It attempts to read the objects mtime and if that isn't present the