Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
Signed-off-by: Danil Grigorev <danil.grigorev@suse.com>
  • Loading branch information
Danil-Grigorev committed Apr 17, 2024
1 parent 8c4d3df commit 4d77004
Showing 1 changed file with 0 additions and 44 deletions.
44 changes: 0 additions & 44 deletions pkg/builder/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@ type WatchesOption interface {
ApplyToWatches(*WatchesInput)
}

type Option interface {
ForOption
OwnsOption
WatchesOption
}

// }}}

// {{{ Multi-Type Options
Expand Down Expand Up @@ -81,36 +75,6 @@ var _ ForOption = &Predicates{}
var _ OwnsOption = &Predicates{}
var _ WatchesOption = &Predicates{}

// WithPredicates sets the given predicates list.
func WithObjectPredicates[T any](predicates ...predicate.ObjectPredicate[T]) ObjectPredicates[T] {
return ObjectPredicates[T]{
predicates: predicates,
}
}

type ObjectPredicates[T any] struct {
predicates []predicate.ObjectPredicate[T]
}

// ApplyToOwns implements OwnsOption.
func (o *ObjectPredicates[T]) ApplyToOwns(*OwnsInput) {
panic("unimplemented")
}

// ApplyToWatches implements WatchesOption.
func (o *ObjectPredicates[T]) ApplyToWatches(*WatchesInput) {
panic("unimplemented")
}

// ApplyToFor implements ForOption.
func (o *ObjectPredicates[T]) ApplyToFor(*ForInput) {
panic("unimplemented")
}

var _ ForOption = &ObjectPredicates[any]{}
var _ OwnsOption = &ObjectPredicates[any]{}
var _ WatchesOption = &ObjectPredicates[any]{}

// }}}

// {{{ For & Owns Dual-Type options
Expand Down Expand Up @@ -190,11 +154,3 @@ type matchEveryOwner struct{}
func (o matchEveryOwner) ApplyToOwns(opts *OwnsInput) {
opts.matchEveryOwner = true
}

// ApplyToFor applies this configuration to the given OwnsInput options.
func (o matchEveryOwner) ApplyToFor(opts *ForInput) {
}

// ApplyToWatches applies this configuration to the given OwnsInput options.
func (o matchEveryOwner) ApplyToWatches(opts *WatchesInput) {
}

0 comments on commit 4d77004

Please sign in to comment.