Browse Source

Remove dead code of integration-cli/utils.go

Signed-off-by: Hu Keping <hukeping@huawei.com>
Hu Keping 10 years ago
parent
commit
35b4ed4d17
1 changed files with 0 additions and 9 deletions
  1. 0 9
      integration-cli/utils.go

+ 0 - 9
integration-cli/utils.go

@@ -295,15 +295,6 @@ func fileServer(files map[string]string) (*FileServer, error) {
 	}, nil
 	}, 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.
 // randomUnixTmpDirPath provides a temporary unix path with rand string appended.
 // does not create or checks if it exists.
 // does not create or checks if it exists.
 func randomUnixTmpDirPath(s string) string {
 func randomUnixTmpDirPath(s string) string {