dropbox: remove unused code

This commit is contained in:
Nick Craig-Wood 2018-04-05 15:23:23 +01:00
parent c4531daa43
commit fbe1c7f1ea
1 changed files with 0 additions and 15 deletions

View File

@ -25,7 +25,6 @@ of path_display and all will be well.
*/
import (
"crypto/md5"
"fmt"
"io"
"log"
@ -808,20 +807,6 @@ func (o *Object) remotePath() string {
return o.fs.slashRootSlash + o.remote
}
// Returns the key for the metadata database for a given path
func metadataKey(path string) string {
// NB File system is case insensitive
path = strings.ToLower(path)
hash := md5.New()
_, _ = hash.Write([]byte(path))
return fmt.Sprintf("%x", hash.Sum(nil))
}
// Returns the key for the metadata database
func (o *Object) metadataKey() string {
return metadataKey(o.remotePath())
}
// readMetaData gets the info if it hasn't already been fetched
func (o *Object) readMetaData() (err error) {
if !o.modTime.IsZero() {