From cf05e4f84f03fc29ee1af20f3bef12a5f8f6583f Mon Sep 17 00:00:00 2001 From: Akihiro Suda Date: Fri, 18 Oct 2024 00:32:21 +0900 Subject: [PATCH] tcpproxy: remove unused functions Signed-off-by: Akihiro Suda --- pkg/tcpproxy/tcpproxy.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pkg/tcpproxy/tcpproxy.go b/pkg/tcpproxy/tcpproxy.go index 5d06188d..eac25fde 100644 --- a/pkg/tcpproxy/tcpproxy.go +++ b/pkg/tcpproxy/tcpproxy.go @@ -83,16 +83,6 @@ type Proxy struct { ListenFunc func(net, laddr string) (net.Listener, error) } -// Matcher reports whether hostname matches the Matcher's criteria. -type Matcher func(ctx context.Context, hostname string) bool - -// equals is a trivial Matcher that implements string equality. -func equals(want string) Matcher { - return func(_ context.Context, got string) bool { - return want == got - } -} - // config contains the proxying state for one listener. type config struct { routes []route