From c3cab5230ba4930ef96ef79bc2b06a4531207fa4 Mon Sep 17 00:00:00 2001 From: "Dr. Stefan Schimanski" Date: Tue, 27 Oct 2015 19:30:14 -0500 Subject: [PATCH] Remove unused members of SchedulerLoop struct --- .../pkg/scheduler/operations/schedulerloop.go | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/contrib/mesos/pkg/scheduler/operations/schedulerloop.go b/contrib/mesos/pkg/scheduler/operations/schedulerloop.go index 3b2fab17147..038be19ef5a 100644 --- a/contrib/mesos/pkg/scheduler/operations/schedulerloop.go +++ b/contrib/mesos/pkg/scheduler/operations/schedulerloop.go @@ -55,9 +55,7 @@ type SchedulerLoopConfig struct { NextPod func() *api.Pod Error func(*api.Pod, error) Recorder record.EventRecorder - Fw types.Framework Client *client.Client - Qr *queuer.Queuer Pr *PodReconciler Starting chan struct{} // startup latch } @@ -103,9 +101,7 @@ func NewSchedulerLoopConfig(c *config.Config, fw types.Framework, client *client NextPod: q.Yield, Error: eh.Error, Recorder: eventBroadcaster.NewRecorder(api.EventSource{Component: "scheduler"}), - Fw: fw, Client: client, - Qr: q, Pr: podReconciler, Starting: startLatch, } @@ -118,9 +114,7 @@ func NewSchedulerLoop(c *SchedulerLoopConfig) SchedulerLoopInterface { nextPod: c.NextPod, error: c.Error, recorder: c.Recorder, - fw: c.Fw, client: c.Client, - qr: c.Qr, pr: c.Pr, starting: c.Starting, } @@ -132,12 +126,9 @@ type SchedulerLoop struct { nextPod func() *api.Pod error func(*api.Pod, error) recorder record.EventRecorder - - fw types.Framework - client *client.Client - qr *queuer.Queuer - pr *PodReconciler - starting chan struct{} + client *client.Client + pr *PodReconciler + starting chan struct{} } func (s *SchedulerLoop) Run(done <-chan struct{}) {