Skip to content

Commit 0bdb2a2

Browse files
committed
Remove unused cache.AtLeast function.
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 0b77ba3 commit 0bdb2a2

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

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -425,13 +425,6 @@ func (f EmptyOperatorFinder) Find(...Predicate) []*Entry {
425425
return nil
426426
}
427427

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

0 commit comments

Comments
 (0)