Dead code cleanup: repo.IsInitialized
The version actually used is in fsrepo, and belongs there as it knows about fsrepo file layout.
Tommi Virtanen committed
Mar 11, 2015 at 13:56 UTC
49732d24fbd2f10129cbef747a85a7bc09fd7ec7
1 file changed
-13
repo/repo.go
-13
@@ -5,7 +5,6 @@ import (
5
6
datastore "github.com/jbenet/go-ipfs/Godeps/_workspace/src/github.com/jbenet/go-datastore"
7
config "github.com/jbenet/go-ipfs/repo/config"
8
- util "github.com/jbenet/go-ipfs/util"
8
)
9
10
type Repo interface {
@@ -19,15 +18,3 @@ type Repo interface {
18
19
io.Closer
20
}
22
-
23
-// IsInitialized returns true if the path is home to an initialized IPFS
24
-// repository.
25
-func IsInitialized(path string) bool {
26
- if !util.FileExists(path) {
27
- return false
28
- }
29
- // TODO add logging check
30
- // TODO add datastore check
31
- // TODO add config file check
32
- return true
33
-}