From 8fd45d8300f08987265be4d02ab1d4b631c7d7db Mon Sep 17 00:00:00 2001 From: wangqingcan Date: Wed, 27 Mar 2019 11:05:19 +0800 Subject: [PATCH] clean up func podTimestamp --- pkg/scheduler/internal/queue/scheduling_queue.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/pkg/scheduler/internal/queue/scheduling_queue.go b/pkg/scheduler/internal/queue/scheduling_queue.go index 3267bed242b..b250f4e07eb 100644 --- a/pkg/scheduler/internal/queue/scheduling_queue.go +++ b/pkg/scheduler/internal/queue/scheduling_queue.go @@ -247,19 +247,6 @@ type PriorityQueue struct { // Making sure that PriorityQueue implements SchedulingQueue. var _ = SchedulingQueue(&PriorityQueue{}) -// podTimeStamp returns pod's last schedule time or its creation time if the -// scheduler has never tried scheduling it. -func podTimestamp(pod *v1.Pod) *metav1.Time { - _, condition := podutil.GetPodCondition(&pod.Status, v1.PodScheduled) - if condition == nil { - return &pod.CreationTimestamp - } - if condition.LastProbeTime.IsZero() { - return &condition.LastTransitionTime - } - return &condition.LastProbeTime -} - // podInfo is minimum cell in the scheduling queue. type podInfo struct { pod *v1.Pod