Skip to content

Commit 2d649b0

Browse files
authored
Remove unused cache.AtLeast function. (#2681)
This function is unused and not interesting or useful enough to support once the exported cache package API stabilizes. Signed-off-by: Ben Luddy <[email protected]>
1 parent ddf92b1 commit 2d649b0

File tree

1 file changed

+0
-7
lines changed
  • pkg/controller/registry/resolver/cache

1 file changed

+0
-7
lines changed

pkg/controller/registry/resolver/cache/cache.go

-7
Original file line numberDiff line numberDiff line change
@@ -423,13 +423,6 @@ func (f EmptyOperatorFinder) Find(...Predicate) []*Entry {
423423
return nil
424424
}
425425

426-
func AtLeast(n int, operators []*Entry) ([]*Entry, error) {
427-
if len(operators) < n {
428-
return nil, fmt.Errorf("expected at least %d operator(s), got %d", n, len(operators))
429-
}
430-
return operators, nil
431-
}
432-
433426
func ExactlyOne(operators []*Entry) (*Entry, error) {
434427
if len(operators) != 1 {
435428
return nil, fmt.Errorf("expected exactly one operator, got %d", len(operators))

0 commit comments

Comments
 (0)