From 5fb002147bd767f78ec1b7d70d513754bb651dd5 Mon Sep 17 00:00:00 2001 From: Antonin Bas Date: Thu, 15 Feb 2024 10:58:15 -0800 Subject: [PATCH] Remove unused Resolver interface in pkg/proxy/util Signed-off-by: Antonin Bas --- pkg/proxy/util/utils.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkg/proxy/util/utils.go b/pkg/proxy/util/utils.go index 48aa3cc34e5..da232fef982 100644 --- a/pkg/proxy/util/utils.go +++ b/pkg/proxy/util/utils.go @@ -17,7 +17,6 @@ limitations under the License. package util import ( - "context" "fmt" "net" "strconv" @@ -86,11 +85,6 @@ func IsLoopBack(ip string) bool { return false } -// Resolver is an interface for net.Resolver -type Resolver interface { - LookupIPAddr(ctx context.Context, host string) ([]net.IPAddr, error) -} - // GetLocalAddrs returns a list of all network addresses on the local system func GetLocalAddrs() ([]net.IP, error) { var localAddrs []net.IP