Skip to content

Commit

Permalink
Remove unused cache.AtLeast function. (#2681)
Browse files Browse the repository at this point in the history
This function is unused and not interesting or useful enough to
support once the exported cache package API stabilizes.

Signed-off-by: Ben Luddy <bluddy@redhat.com>
  • Loading branch information
benluddy committed Mar 2, 2022
1 parent ddf92b1 commit 2d649b0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions pkg/controller/registry/resolver/cache/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -423,13 +423,6 @@ func (f EmptyOperatorFinder) Find(...Predicate) []*Entry {
return nil
}

func AtLeast(n int, operators []*Entry) ([]*Entry, error) {
if len(operators) < n {
return nil, fmt.Errorf("expected at least %d operator(s), got %d", n, len(operators))
}
return operators, nil
}

func ExactlyOne(operators []*Entry) (*Entry, error) {
if len(operators) != 1 {
return nil, fmt.Errorf("expected exactly one operator, got %d", len(operators))
Expand Down

0 comments on commit 2d649b0

Please sign in to comment.