From 02ab6ad0671491e40ed743d2882f2a192c60080d Mon Sep 17 00:00:00 2001 From: zouyee Date: Mon, 23 Sep 2019 10:34:42 +0800 Subject: [PATCH] cleanup unused function Signed-off-by: Zou Nengren --- test/e2e/framework/util.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/test/e2e/framework/util.go b/test/e2e/framework/util.go index d05da0481ee..748830ea160 100644 --- a/test/e2e/framework/util.go +++ b/test/e2e/framework/util.go @@ -2643,13 +2643,6 @@ func LookForStringInLog(ns, podName, container, expectedString string, timeout t }) } -// LookForStringInFile looks for the given string in a file in a specific pod container -func LookForStringInFile(ns, podName, container, file, expectedString string, timeout time.Duration) (result string, err error) { - return LookForString(expectedString, timeout, func() string { - return RunKubectlOrDie("exec", podName, "-c", container, fmt.Sprintf("--namespace=%v", ns), "--", "cat", file) - }) -} - // EnsureLoadBalancerResourcesDeleted ensures that cloud load balancer resources that were created // are actually cleaned up. Currently only implemented for GCE/GKE. func EnsureLoadBalancerResourcesDeleted(ip, portRange string) error {