提交 c07578d6 作者: Brian Tiger Chow

chore(util) rm unused DatastoreKey method

上级 03ffdbff
......@@ -8,7 +8,6 @@ import (
"path/filepath"
"strings"
ds "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/datastore.go"
b58 "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-base58"
mh "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-multihash"
)
......@@ -32,10 +31,6 @@ var ErrNotFound = errors.New("Error: Not Found.")
// Key is a string representation of multihash for use with maps.
type Key string
func (k Key) DatastoreKey() ds.Key {
return ds.NewKey(string(k))
}
func (k Key) Pretty() string {
return b58.Encode([]byte(k))
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论