From 2d4eef6247d1c054eb641ee069c310afe51ce5bd Mon Sep 17 00:00:00 2001 From: MartinKuzma Date: Wed, 21 Aug 2024 10:28:53 +0200 Subject: [PATCH] Remove unused attribute --- pkg/service/router/router.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pkg/service/router/router.go b/pkg/service/router/router.go index 81e94d7..b922d13 100644 --- a/pkg/service/router/router.go +++ b/pkg/service/router/router.go @@ -8,7 +8,6 @@ import ( "github.com/eset/grpc-rest-proxy/pkg/service/transformer" jErrors "github.com/juju/errors" - "google.golang.org/protobuf/reflect/protoregistry" ) type Match struct { @@ -20,8 +19,6 @@ type Match struct { type Router struct { routesByMethod map[MethodType][]routeMatcher - // resolver is used to resolve any types that are unknown to proxy. - typeResolver *protoregistry.Types } func NewRouter() *Router { @@ -113,7 +110,3 @@ func (r *Router) Push(route *Route) error { r.routesByMethod[route.method] = routes return nil } - -func (r *Router) Resolver() *protoregistry.Types { - return r.typeResolver -}