Commit 2ec96e0b authored by Chris O'Haver's avatar Chris O'Haver Committed by Miek Gieben

remove unused funcs (#724)

parent 92dd947c
......@@ -368,27 +368,3 @@ func (dns *dnsControl) EndpointsList() api.EndpointsList {
return epl
}
// ServicesByNamespace returns a map of:
//
// namespacename :: [ kubernetesService ]
func (dns *dnsControl) ServicesByNamespace() map[string][]api.Service {
k8sServiceList := dns.ServiceList()
items := make(map[string][]api.Service, len(k8sServiceList))
for _, i := range k8sServiceList {
namespace := i.Namespace
items[namespace] = append(items[namespace], *i)
}
return items
}
// ServiceInNamespace returns the Service that matches servicename in the namespace
func (dns *dnsControl) ServiceInNamespace(namespace, servicename string) *api.Service {
svcObj, err := dns.svcLister.Services(namespace).Get(servicename)
if err != nil {
// TODO(...): should return err here
return nil
}
return svcObj
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment