From 8447f0f6ce40d2e6ab20f86f1e4edede8c412616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20F=20Bj=C3=B6rklund?= Date: Sat, 14 Mar 2020 14:05:09 +0100 Subject: [PATCH] Remove now unused machineDirs function --- pkg/minikube/machine/machine.go | 19 ------------------- 1 file changed, 19 deletions(-) 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 -}