@cryptotaxi247 / kubo / commits / c07578d6a

chore(util) rm unused DatastoreKey method

Brian Tiger Chow committed Sep 16, 2014 at 08:10 UTC c07578d6ab850909cf0d7d8116c810ade2b17121
1 file changed -5
util/util.go
-5
@@ -8,7 +8,6 @@ import (
8 "path/filepath"
9 "strings"
10
11 - ds "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/datastore.go"
11 b58 "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-base58"
12 mh "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
13 )
@@ -32,10 +31,6 @@ var ErrNotFound = errors.New("Error: Not Found.")
31 // Key is a string representation of multihash for use with maps.
32 type Key string
33
35 -func (k Key) DatastoreKey() ds.Key {
36 - return ds.NewKey(string(k))
37 -}
38 -
34 func (k Key) Pretty() string {
35 return b58.Encode([]byte(k))
36 }