From 22522cd003eafb7e8bd2a27ae2fa5a6c0957f0d7 Mon Sep 17 00:00:00 2001 From: Kouhei Ueno Date: Wed, 6 Aug 2014 06:43:16 +0900 Subject: [PATCH] PodConfigListener is never used --- pkg/kubelet/config/config.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/pkg/kubelet/config/config.go b/pkg/kubelet/config/config.go index 33206edce1a..53edf06b459 100644 --- a/pkg/kubelet/config/config.go +++ b/pkg/kubelet/config/config.go @@ -28,20 +28,6 @@ import ( "github.com/golang/glog" ) -// PodConfigListener receives notifications for changes to a configuration. -type PodConfigListener interface { - // OnUpdate is invoked when the kubelet.Pod configuration has been changed by one of - // the sources. The update is properly normalized to remove duplicates. - OnUpdate(pod kubelet.PodUpdate) -} - -// ListenerFunc implements the PodConfigListener interface -type ListenerFunc func(update kubelet.PodUpdate) - -func (h ListenerFunc) OnUpdate(update kubelet.PodUpdate) { - h(update) -} - // PodConfigNotificationMode describes how changes are sent to the update channel type PodConfigNotificationMode int