Skip to content

Commit e6df24e

Browse files
benluddynjhale
authored andcommitted
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 ddf92b1 commit e6df24e

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
@@ -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)