Merge pull request #2083 from dgageot/remove-dead-code

Remove dead code
This commit is contained in:
Olivier Gambier 2015-10-26 10:07:27 -07:00
commit 7ecb221444
2 changed files with 0 additions and 17 deletions

View File

@ -18,10 +18,6 @@ func GetBaseDir() string {
return BaseDir
}
func GetDockerDir() string {
return filepath.Join(mcnutils.GetHomeDir(), ".docker")
}
func GetMachineDir() string {
return filepath.Join(GetBaseDir(), "machines")
}
@ -29,7 +25,3 @@ func GetMachineDir() string {
func GetMachineCertDir() string {
return filepath.Join(GetBaseDir(), "certs")
}
func GetMachineCacheDir() string {
return filepath.Join(GetBaseDir(), "cache")
}

View File

@ -31,15 +31,6 @@ func TestGetCustomBaseDir(t *testing.T) {
BaseDir = ""
}
func TestGetDockerDir(t *testing.T) {
homeDir := mcnutils.GetHomeDir()
baseDir := GetBaseDir()
if strings.Index(baseDir, homeDir) != 0 {
t.Fatalf("expected base dir with prefix %s; received %s", homeDir, baseDir)
}
}
func TestGetMachineDir(t *testing.T) {
root := "/tmp"
BaseDir = root