Skip to content

Commit

Permalink
Merge pull request #7049 from afbjorklund/unused-machineDirs
Browse files Browse the repository at this point in the history
Remove now unused machineDirs function
  • Loading branch information
afbjorklund committed Mar 14, 2020
2 parents 75ba4c2 + 8447f0f commit 359f846
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions pkg/minikube/machine/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
}

0 comments on commit 359f846

Please sign in to comment.