Unverified Commit bdc013ad authored by Kubernetes Prow Robot's avatar Kubernetes Prow Robot Committed by GitHub

Merge pull request #75276 from WanLinghao/node_lifecycle_clean

unused function clean
parents 30071b31 686b526d
......@@ -23,8 +23,6 @@ package nodelifecycle
import (
"fmt"
"hash/fnv"
"io"
"sync"
"time"
......@@ -1276,9 +1274,3 @@ func (nc *Controller) reconcileNodeLabels(nodeName string) error {
}
return nil
}
func hash(val string, max int) int {
hasher := fnv.New32a()
io.WriteString(hasher, val)
return int(hasher.Sum32()) % max
}
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