add test for service controller sync and remove unused function

This commit is contained in:
NickrenREN
2017-01-16 18:49:43 +08:00
committed by NickrenREN
parent ceccd305ce
commit 5c9fe166f9
3 changed files with 119 additions and 18 deletions

View File

@@ -573,24 +573,6 @@ func nodeSlicesEqualForLB(x, y []*v1.Node) bool {
return stringSlicesEqual(nodeNames(x), nodeNames(y))
}
func intSlicesEqual(x, y []int) bool {
if len(x) != len(y) {
return false
}
if !sort.IntsAreSorted(x) {
sort.Ints(x)
}
if !sort.IntsAreSorted(y) {
sort.Ints(y)
}
for i := range x {
if x[i] != y[i] {
return false
}
}
return true
}
func stringSlicesEqual(x, y []string) bool {
if len(x) != len(y) {
return false