util: Delete unused getNamespacedService
package envoy
import (
- "strings"
-
"github.com/open-service-mesh/osm/pkg/endpoint"
)
@@ -15,16 +13,3 @@ func Contains(proxyService endpoint.NamespacedService, services []endpoint.Names
}
return false
}
-
-func getNamespacedService(serviceName string) endpoint.NamespacedService {
- split := strings.Split(serviceName, "/")
- var namespacedService endpoint.NamespacedService
- if len(split) == 0 {
- namespacedService.Namespace = "default"
- namespacedService.Service = split[0]
- } else {
- namespacedService.Namespace = split[0]
- namespacedService.Service = split[1]
- }
- return namespacedService
-}
