Skip to content

Commit fb32f53

Browse files
committed
remove unused function
1 parent 0320177 commit fb32f53

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

pkg/controllers/provisioning/scheduling/scheduler.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package scheduling
1919
import (
2020
"bytes"
2121
"context"
22-
"errors"
2322
"fmt"
2423
"sort"
2524
"time"
@@ -212,12 +211,6 @@ func (r Results) ReservedOfferingErrors() map[*corev1.Pod]error {
212211
})
213212
}
214213

215-
func (r Results) ContextDeadlineExceededErrors() map[*corev1.Pod]error {
216-
return lo.PickBy(r.PodErrors, func(_ *corev1.Pod, err error) bool {
217-
return errors.Is(err, context.DeadlineExceeded)
218-
})
219-
}
220-
221214
// AllNonPendingPodsScheduled returns true if all pods scheduled.
222215
// 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
223216
// schedule at all and don't want it to block consolidation.

0 commit comments

Comments
 (0)