envoy: Delete unused GetService
@@ -6,7 +6,6 @@ import (
"time"
"github.com/openservicemesh/osm/pkg/certificate"
- "github.com/openservicemesh/osm/pkg/service"
)
// Proxy is a representation of an Envoy proxy connected to the xDS server.
@@ -14,7 +13,6 @@ import (
type Proxy struct {
certificate.CommonName
net.Addr
- MeshService service.MeshService
announcements chan interface{}
// The time this Proxy connected to the OSM control plane
@@ -72,12 +70,6 @@ func (p Proxy) String() string {
return string(p.GetCommonName())
}
-// GetService determines the meshed service this endpoint should support based on the mTLS certificate.
-// From "a.b.c" returns "b.c". By convention "a" is the ID of the proxy. Remaining "b.c" is the name of the service.
-func (p Proxy) GetService() service.MeshService {
- return p.MeshService
-}
-
// GetCommonName returns the Subject Common Name from the mTLS certificate of the Envoy proxy connected to xDS.
func (p Proxy) GetCommonName() certificate.CommonName {
return p.CommonName
