X Tutup
Skip to content

Commit ab1b0ca

Browse files
committed
Remove dead code
Signed-off-by: David Gageot <david@gageot.net>
1 parent f155bc9 commit ab1b0ca

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

commands/mcndirs/utils.go

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,10 @@ func GetBaseDir() string {
1818
return BaseDir
1919
}
2020

21-
func GetDockerDir() string {
22-
return filepath.Join(mcnutils.GetHomeDir(), ".docker")
23-
}
24-
2521
func GetMachineDir() string {
2622
return filepath.Join(GetBaseDir(), "machines")
2723
}
2824

2925
func GetMachineCertDir() string {
3026
return filepath.Join(GetBaseDir(), "certs")
3127
}
32-
33-
func GetMachineCacheDir() string {
34-
return filepath.Join(GetBaseDir(), "cache")
35-
}

commands/mcndirs/utils_test.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,6 @@ func TestGetCustomBaseDir(t *testing.T) {
3131
BaseDir = ""
3232
}
3333

34-
func TestGetDockerDir(t *testing.T) {
35-
homeDir := mcnutils.GetHomeDir()
36-
baseDir := GetBaseDir()
37-
38-
if strings.Index(baseDir, homeDir) != 0 {
39-
t.Fatalf("expected base dir with prefix %s; received %s", homeDir, baseDir)
40-
}
41-
}
42-
4334
func TestGetMachineDir(t *testing.T) {
4435
root := "/tmp"
4536
BaseDir = root

0 commit comments

Comments
 (0)
X Tutup