提交 49732d24 作者: Tommi Virtanen

Dead code cleanup: repo.IsInitialized

The version actually used is in fsrepo, and belongs there as it knows
about fsrepo file layout.
上级 565505c4
......@@ -5,7 +5,6 @@ import (
datastore "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore"
config "github.com/jbenet/go-ipfs/repo/config"
util "github.com/jbenet/go-ipfs/util"
)
type Repo interface {
......@@ -19,15 +18,3 @@ type Repo interface {
io.Closer
}
// IsInitialized returns true if the path is home to an initialized IPFS
// repository.
func IsInitialized(path string) bool {
if !util.FileExists(path) {
return false
}
// TODO add logging check
// TODO add datastore check
// TODO add config file check
return true
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论