diff --git a/pkg/api/endpoints/util.go b/pkg/api/endpoints/util.go index 3d7b6e514f6..8fa72b56819 100644 --- a/pkg/api/endpoints/util.go +++ b/pkg/api/endpoints/util.go @@ -168,14 +168,6 @@ func LessEndpointAddress(a, b *api.EndpointAddress) bool { return a.TargetRef.UID < b.TargetRef.UID } -type addrPtrsByIpAndUID []*api.EndpointAddress - -func (sl addrPtrsByIpAndUID) Len() int { return len(sl) } -func (sl addrPtrsByIpAndUID) Swap(i, j int) { sl[i], sl[j] = sl[j], sl[i] } -func (sl addrPtrsByIpAndUID) Less(i, j int) bool { - return LessEndpointAddress(sl[i], sl[j]) -} - // SortSubsets sorts an array of EndpointSubset objects in place. For ease of // use it returns the input slice. func SortSubsets(subsets []api.EndpointSubset) []api.EndpointSubset { diff --git a/pkg/api/v1/endpoints/util.go b/pkg/api/v1/endpoints/util.go index 89b8d9e16ae..833af440c32 100644 --- a/pkg/api/v1/endpoints/util.go +++ b/pkg/api/v1/endpoints/util.go @@ -169,14 +169,6 @@ func LessEndpointAddress(a, b *v1.EndpointAddress) bool { return a.TargetRef.UID < b.TargetRef.UID } -type addrPtrsByIpAndUID []*v1.EndpointAddress - -func (sl addrPtrsByIpAndUID) Len() int { return len(sl) } -func (sl addrPtrsByIpAndUID) Swap(i, j int) { sl[i], sl[j] = sl[j], sl[i] } -func (sl addrPtrsByIpAndUID) Less(i, j int) bool { - return LessEndpointAddress(sl[i], sl[j]) -} - // SortSubsets sorts an array of EndpointSubset objects in place. For ease of // use it returns the input slice. func SortSubsets(subsets []v1.EndpointSubset) []v1.EndpointSubset {