[registry] Remove unused ObjectMetaWrapper
Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Aleksei Sviridkin <f@lex.la>
This commit is contained in:
parent
e9cad4507b
commit
da56c88aa7
1 changed files with 0 additions and 17 deletions
|
|
@ -6,8 +6,6 @@ package sorting
|
|||
import (
|
||||
"slices"
|
||||
"strings"
|
||||
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
)
|
||||
|
||||
// NameGetter is an interface for objects that have a Name.
|
||||
|
|
@ -47,18 +45,3 @@ func ByNamespacedName[T any, PT interface {
|
|||
return strings.Compare(pa.GetName(), pb.GetName())
|
||||
})
|
||||
}
|
||||
|
||||
// ObjectMetaWrapper wraps metav1.ObjectMeta to implement NamespaceGetter.
|
||||
type ObjectMetaWrapper struct {
|
||||
metav1.ObjectMeta
|
||||
}
|
||||
|
||||
// GetName returns the name.
|
||||
func (o *ObjectMetaWrapper) GetName() string {
|
||||
return o.Name
|
||||
}
|
||||
|
||||
// GetNamespace returns the namespace.
|
||||
func (o *ObjectMetaWrapper) GetNamespace() string {
|
||||
return o.Namespace
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue