mirror of https://github.com/docker/docs.git
Merge pull request #2083 from dgageot/remove-dead-code
Remove dead code
This commit is contained in:
commit
7ecb221444
|
@ -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")
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue