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 {
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
You can’t perform that action at this time.
0 commit comments