Skip to content

Commit

Permalink
chore: remove unused 'anyOptional' function
Browse files Browse the repository at this point in the history
  • Loading branch information
rriski committed Feb 15, 2024
1 parent 3a5f373 commit 2a086df
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions controllers/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,14 +144,6 @@ func fromAnyPointer[T any](v *T) T {
return t
}

func anyOptional[T comparable](v T) *T {
var zero T
if zero == v {
return nil
}
return &v
}

type objWithSecret interface {
GetName() string
GetNamespace() string
Expand Down

0 comments on commit 2a086df

Please sign in to comment.