diff --git a/pkg/controllers/provisioning/scheduling/scheduler.go b/pkg/controllers/provisioning/scheduling/scheduler.go index 304c6a19c2..565f0dfda8 100644 --- a/pkg/controllers/provisioning/scheduling/scheduler.go +++ b/pkg/controllers/provisioning/scheduling/scheduler.go @@ -19,7 +19,6 @@ package scheduling import ( "bytes" "context" - "errors" "fmt" "sort" "time" @@ -212,12 +211,6 @@ func (r Results) ReservedOfferingErrors() map[*corev1.Pod]error { }) } -func (r Results) ContextDeadlineExceededErrors() map[*corev1.Pod]error { - return lo.PickBy(r.PodErrors, func(_ *corev1.Pod, err error) bool { - return errors.Is(err, context.DeadlineExceeded) - }) -} - // AllNonPendingPodsScheduled returns true if all pods scheduled. // We don't care if a pod was pending before consolidation and will still be pending after. It may be a pod that we can't // schedule at all and don't want it to block consolidation.