From 04233cdb880d08c1e4c41cf0e58d2f3bf27fd690 Mon Sep 17 00:00:00 2001 From: Victor Marmol Date: Fri, 13 Mar 2015 10:35:50 -0700 Subject: [PATCH] Remove unused handleUpdate() in Kubelet. --- pkg/kubelet/kubelet.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/pkg/kubelet/kubelet.go b/pkg/kubelet/kubelet.go index e15ba406dbd..bbc1ac26005 100644 --- a/pkg/kubelet/kubelet.go +++ b/pkg/kubelet/kubelet.go @@ -1558,23 +1558,6 @@ func (kl *Kubelet) handleHostPortConflicts(pods []api.BoundPod) { } } -func (kl *Kubelet) handleUpdate(u PodUpdate) { - kl.podLock.Lock() - defer kl.podLock.Unlock() - switch u.Op { - case SET: - glog.V(3).Infof("SET: Containers changed") - kl.pods = u.Pods - kl.handleHostPortConflicts(kl.pods) - case UPDATE: - glog.V(3).Infof("Update: Containers changed") - kl.pods = updateBoundPods(u.Pods, kl.pods) - kl.handleHostPortConflicts(kl.pods) - default: - panic("syncLoop does not support incremental changes") - } -} - // syncLoop is the main loop for processing changes. It watches for changes from // three channels (file, apiserver, and http) and creates a union of them. For // any new change seen, will run a sync against desired state and running state. If