Remove dead code in kubelet.go

The only call to this was removed in #20204 by @HaiyangDING

cc @vishh
This commit is contained in:
Rudi C 2016-04-14 20:17:22 -04:00
parent bbe5299371
commit 43d2b572ef

View File

@ -2273,19 +2273,6 @@ func hasHostPortConflicts(pods []*api.Pod) bool {
return false
}
// hasInsufficientfFreeResources detects pods that exceeds node's cpu and memory resource.
func (kl *Kubelet) hasInsufficientfFreeResources(pods []*api.Pod) (bool, bool) {
info, err := kl.GetCachedMachineInfo()
if err != nil {
glog.Errorf("error getting machine info: %v", err)
// TODO: Should we admit the pod when machine info is unavailable?
return false, false
}
capacity := cadvisor.CapacityFromMachineInfo(info)
_, notFittingCPU, notFittingMemory := predicates.CheckPodsExceedingFreeResources(pods, capacity)
return len(notFittingCPU) > 0, len(notFittingMemory) > 0
}
// handleOutOfDisk detects if pods can't fit due to lack of disk space.
func (kl *Kubelet) isOutOfDisk() bool {
outOfDockerDisk := false