From ab1b0ca2e97badb77c393cd7a60856092fcbbfcd Mon Sep 17 00:00:00 2001 From: David Gageot Date: Mon, 26 Oct 2015 09:34:31 +0100 Subject: [PATCH] Remove dead code Signed-off-by: David Gageot --- commands/mcndirs/utils.go | 8 -------- commands/mcndirs/utils_test.go | 9 --------- 2 files changed, 17 deletions(-) diff --git a/commands/mcndirs/utils.go b/commands/mcndirs/utils.go index 6c660bba74..3181e7c86c 100644 --- a/commands/mcndirs/utils.go +++ b/commands/mcndirs/utils.go @@ -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") -} diff --git a/commands/mcndirs/utils_test.go b/commands/mcndirs/utils_test.go index dbe08cca66..9fca65f7ca 100644 --- a/commands/mcndirs/utils_test.go +++ b/commands/mcndirs/utils_test.go @@ -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