diff --git a/pkg/minikube/machine/machine.go b/pkg/minikube/machine/machine.go index f508c9847045..215f24075316 100644 --- a/pkg/minikube/machine/machine.go +++ b/pkg/minikube/machine/machine.go @@ -17,12 +17,8 @@ limitations under the License. package machine import ( - "io/ioutil" - "path/filepath" - "github.com/docker/machine/libmachine/host" "github.com/pkg/errors" - "k8s.io/minikube/pkg/minikube/localpath" ) // Machine contains information about a machine @@ -78,18 +74,3 @@ func LoadMachine(name string) (*Machine, error) { } return &mm, nil } - -func machineDirs(miniHome ...string) (dirs []string, err error) { - miniPath := localpath.MiniPath() - if len(miniHome) > 0 { - miniPath = miniHome[0] - } - mRootDir := filepath.Join(miniPath, "machines") - items, err := ioutil.ReadDir(mRootDir) - for _, f := range items { - if f.IsDir() { - dirs = append(dirs, f.Name()) - } - } - return dirs, err -}