From bbf89a9e7fa6e7f300babdefa8e1adba05d39876 Mon Sep 17 00:00:00 2001 From: Jessica Frazelle Date: Tue, 14 Oct 2014 15:11:21 -0700 Subject: [PATCH] Cleanup errorOut remove errorOut functions Docker-DCO-1.1-Signed-off-by: Jessica Frazelle (github: jfrazelle) Upstream-commit: 5af7facf18565100d52fa198a695ab98a9669825 Component: engine --- components/engine/integration-cli/utils.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/components/engine/integration-cli/utils.go b/components/engine/integration-cli/utils.go index f3f128e329..e99e45591b 100644 --- a/components/engine/integration-cli/utils.go +++ b/components/engine/integration-cli/utils.go @@ -13,7 +13,6 @@ import ( "reflect" "strings" "syscall" - "testing" "time" "github.com/docker/docker/vendor/src/code.google.com/p/go/src/pkg/archive/tar" @@ -113,18 +112,6 @@ func stripTrailingCharacters(target string) string { return target } -func errorOut(err error, t *testing.T, message string) { - if err != nil { - t.Fatal(message) - } -} - -func errorOutOnNonNilError(err error, t *testing.T, message string) { - if err == nil { - t.Fatalf(message) - } -} - func nLines(s string) int { return strings.Count(s, "\n") }