Skip to content

Commit

Permalink
remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
rschalo committed Mar 7, 2025
1 parent 0320177 commit fb32f53
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/controllers/provisioning/scheduling/scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package scheduling
import (
"bytes"
"context"
"errors"
"fmt"
"sort"
"time"
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit fb32f53

Please sign in to comment.