Skip to content

Commit

Permalink
Merge pull request moby#13273 from HuKeping/remove-deadcode
Browse files Browse the repository at this point in the history
Cleanup dead code of integration-cli/utils.go
  • Loading branch information
runcom committed May 16, 2015
2 parents 115b11a + 35b4ed4 commit 42cfc95
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions integration-cli/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 42cfc95

Please sign in to comment.