@@ -40,12 +40,6 @@ type WatchesOption interface {
40
40
ApplyToWatches (* WatchesInput )
41
41
}
42
42
43
- type Option interface {
44
- ForOption
45
- OwnsOption
46
- WatchesOption
47
- }
48
-
49
43
// }}}
50
44
51
45
// {{{ Multi-Type Options
@@ -81,36 +75,6 @@ var _ ForOption = &Predicates{}
81
75
var _ OwnsOption = & Predicates {}
82
76
var _ WatchesOption = & Predicates {}
83
77
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
-
114
78
// }}}
115
79
116
80
// {{{ For & Owns Dual-Type options
@@ -190,11 +154,3 @@ type matchEveryOwner struct{}
190
154
func (o matchEveryOwner ) ApplyToOwns (opts * OwnsInput ) {
191
155
opts .matchEveryOwner = true
192
156
}
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