clean up commented out code

This commit is contained in:
Aleksandra Malinowska 2020-03-09 13:45:59 +01:00
parent 4691f1ccea
commit 6018896b88
1 changed files with 0 additions and 8 deletions

View File

@ -962,14 +962,6 @@ func updateScaleDownMetrics(scaleDownStart time.Time, findNodesToRemoveDuration
}
func (sd *ScaleDown) getEmptyNodesNoResourceLimits(candidates []string, maxEmptyBulkDelete int) []*apiv1.Node {
/* candidateNodeInfos := make([]*schedulernodeinfo.NodeInfo, len(candidates))
for i, name := range candidates {
if nodeInfo, err := sd.context.ClusterSnapshot.NodeInfos().Get(name); err != nil {
klog.Errorf("Can't retrive scale-down candidate %s from snapshot, err: %v", name, err)
} else {
candidateNodeInfos[i] = nodeInfo
}
}*/
return sd.getEmptyNodes(candidates, maxEmptyBulkDelete, noScaleDownLimitsOnResources())
}