File tree Expand file tree Collapse file tree 1 file changed +0
-36
lines changed Expand file tree Collapse file tree 1 file changed +0
-36
lines changed Original file line number Diff line number Diff 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{}
8175var _ OwnsOption = & Predicates {}
8276var _ 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
You can’t perform that action at this time.
0 commit comments