Skip to content

Commit 8447f0f

Browse files
committed
Remove now unused machineDirs function
1 parent 75ba4c2 commit 8447f0f

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

Diff for: pkg/minikube/machine/machine.go

-19
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,8 @@ limitations under the License.
1717
package machine
1818

1919
import (
20-
"io/ioutil"
21-
"path/filepath"
22-
2320
"github.com/docker/machine/libmachine/host"
2421
"github.com/pkg/errors"
25-
"k8s.io/minikube/pkg/minikube/localpath"
2622
)
2723

2824
// Machine contains information about a machine
@@ -78,18 +74,3 @@ func LoadMachine(name string) (*Machine, error) {
7874
}
7975
return &mm, nil
8076
}
81-
82-
func machineDirs(miniHome ...string) (dirs []string, err error) {
83-
miniPath := localpath.MiniPath()
84-
if len(miniHome) > 0 {
85-
miniPath = miniHome[0]
86-
}
87-
mRootDir := filepath.Join(miniPath, "machines")
88-
items, err := ioutil.ReadDir(mRootDir)
89-
for _, f := range items {
90-
if f.IsDir() {
91-
dirs = append(dirs, f.Name())
92-
}
93-
}
94-
return dirs, err
95-
}

0 commit comments

Comments
 (0)