From 35b4ed4d174105bacbd35e3d7a0e506ff2d697b8 Mon Sep 17 00:00:00 2001 From: Hu Keping Date: Sat, 16 May 2015 16:49:55 +0800 Subject: [PATCH] Remove dead code of integration-cli/utils.go Signed-off-by: Hu Keping --- integration-cli/utils.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/integration-cli/utils.go b/integration-cli/utils.go index 2da0e3c4bd..f7ad61b0ac 100644 --- a/integration-cli/utils.go +++ b/integration-cli/utils.go @@ -295,15 +295,6 @@ func fileServer(files map[string]string) (*FileServer, error) { }, nil } -func copyWithCP(source, target string) error { - copyCmd := exec.Command("cp", "-rp", source, target) - out, exitCode, err := runCommandWithOutput(copyCmd) - if err != nil || exitCode != 0 { - return fmt.Errorf("failed to copy: error: %q ,output: %q", err, out) - } - return nil -} - // randomUnixTmpDirPath provides a temporary unix path with rand string appended. // does not create or checks if it exists. func randomUnixTmpDirPath(s string) string {