diff options
Diffstat (limited to 'drive/util.go')
| -rw-r--r-- | drive/util.go | 14 | 
1 files changed, 0 insertions, 14 deletions
| diff --git a/drive/util.go b/drive/util.go index 1c43009..2116f9b 100644 --- a/drive/util.go +++ b/drive/util.go @@ -9,8 +9,6 @@ import (      "unicode/utf8"      "math"      "time" -    "crypto/md5" -    "io"  )  type kv struct { @@ -137,18 +135,6 @@ func intMax() int64 {      return 1 << (strconv.IntSize - 1) - 1  } -func md5sum(path string) string { -    h := md5.New() -    f, err := os.Open(path) -    if err != nil { -        return "" -    } -    defer f.Close() - -    io.Copy(h, f) -    return fmt.Sprintf("%x", h.Sum(nil)) -} -  func pathLength(path string) int {      return strings.Count(path, string(os.PathSeparator))  } | 
