Skip to content

Commit 4d77004

Browse files
Cleanup
Signed-off-by: Danil Grigorev <[email protected]>
1 parent 8c4d3df commit 4d77004

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

pkg/builder/options.go

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,6 @@ type WatchesOption interface {
4040
ApplyToWatches(*WatchesInput)
4141
}
4242

43-
type Option interface {
44-
ForOption
45-
OwnsOption
46-
WatchesOption
47-
}
48-
4943
// }}}
5044

5145
// {{{ Multi-Type Options
@@ -81,36 +75,6 @@ var _ ForOption = &Predicates{}
8175
var _ OwnsOption = &Predicates{}
8276
var _ WatchesOption = &Predicates{}
8377

84-
// WithPredicates sets the given predicates list.
85-
func WithObjectPredicates[T any](predicates ...predicate.ObjectPredicate[T]) ObjectPredicates[T] {
86-
return ObjectPredicates[T]{
87-
predicates: predicates,
88-
}
89-
}
90-
91-
type ObjectPredicates[T any] struct {
92-
predicates []predicate.ObjectPredicate[T]
93-
}
94-
95-
// ApplyToOwns implements OwnsOption.
96-
func (o *ObjectPredicates[T]) ApplyToOwns(*OwnsInput) {
97-
panic("unimplemented")
98-
}
99-
100-
// ApplyToWatches implements WatchesOption.
101-
func (o *ObjectPredicates[T]) ApplyToWatches(*WatchesInput) {
102-
panic("unimplemented")
103-
}
104-
105-
// ApplyToFor implements ForOption.
106-
func (o *ObjectPredicates[T]) ApplyToFor(*ForInput) {
107-
panic("unimplemented")
108-
}
109-
110-
var _ ForOption = &ObjectPredicates[any]{}
111-
var _ OwnsOption = &ObjectPredicates[any]{}
112-
var _ WatchesOption = &ObjectPredicates[any]{}
113-
11478
// }}}
11579

11680
// {{{ For & Owns Dual-Type options
@@ -190,11 +154,3 @@ type matchEveryOwner struct{}
190154
func (o matchEveryOwner) ApplyToOwns(opts *OwnsInput) {
191155
opts.matchEveryOwner = true
192156
}
193-
194-
// ApplyToFor applies this configuration to the given OwnsInput options.
195-
func (o matchEveryOwner) ApplyToFor(opts *ForInput) {
196-
}
197-
198-
// ApplyToWatches applies this configuration to the given OwnsInput options.
199-
func (o matchEveryOwner) ApplyToWatches(opts *WatchesInput) {
200-
}

0 commit comments

Comments
 (0)