From 49732d24fbd2f10129cbef747a85a7bc09fd7ec7 Mon Sep 17 00:00:00 2001 From: Tommi Virtanen Date: Wed, 11 Mar 2015 13:56:17 -0700 Subject: [PATCH] Dead code cleanup: repo.IsInitialized The version actually used is in fsrepo, and belongs there as it knows about fsrepo file layout. --- repo/repo.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/repo/repo.go b/repo/repo.go index ee6899779..e98968ff9 100644 --- a/repo/repo.go +++ b/repo/repo.go @@ -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 -}