mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
remove unused functions in pkg/controller/nodelifecycle/node_lifecycle_controller.go
This commit is contained in:
parent
01c9edf7fa
commit
686b526de4
@ -23,8 +23,6 @@ package nodelifecycle
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"hash/fnv"
|
|
||||||
"io"
|
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
@ -1276,9 +1274,3 @@ func (nc *Controller) reconcileNodeLabels(nodeName string) error {
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func hash(val string, max int) int {
|
|
||||||
hasher := fnv.New32a()
|
|
||||||
io.WriteString(hasher, val)
|
|
||||||
return int(hasher.Sum32()) % max
|
|
||||||
}
|
|
||||||
|
Loading…
Reference in New Issue
Block a user