Skip to content

Commit aa45f1b

Browse files
committed
tcpproxy: remove unused functions
Signed-off-by: Akihiro Suda <[email protected]>
1 parent 2c608a7 commit aa45f1b

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

pkg/tcpproxy/tcpproxy.go

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,6 @@ type Proxy struct {
8383
ListenFunc func(net, laddr string) (net.Listener, error)
8484
}
8585

86-
// Matcher reports whether hostname matches the Matcher's criteria.
87-
type Matcher func(ctx context.Context, hostname string) bool
88-
89-
// equals is a trivial Matcher that implements string equality.
90-
func equals(want string) Matcher {
91-
return func(_ context.Context, got string) bool {
92-
return want == got
93-
}
94-
}
95-
9686
// config contains the proxying state for one listener.
9787
type config struct {
9888
routes []route

0 commit comments

Comments
 (0)