diff --git a/api/resmap/resmap.go b/api/resmap/resmap.go index f5d99abb6..b803453e1 100644 --- a/api/resmap/resmap.go +++ b/api/resmap/resmap.go @@ -151,7 +151,7 @@ type ResMap interface { // an exact match, returning an error on multiple or no matches. GetByCurrentId(resid.ResId) (*resource.Resource, error) - // GetByPreviousId is shorthand for calling + // GetById is shorthand for calling // GetMatchingResourcesByAnyId with a matcher requiring // an exact match, returning an error on multiple or no matches. GetById(resid.ResId) (*resource.Resource, error) diff --git a/api/resource/resource.go b/api/resource/resource.go index 56c0694bf..9b132a21d 100644 --- a/api/resource/resource.go +++ b/api/resource/resource.go @@ -282,24 +282,6 @@ func (r *Resource) appendCsvAnnotation(name, value string) { r.SetAnnotations(annotations) } -// Implements ResCtx GetOutermostNamePrefix -func (r *Resource) GetOutermostNamePrefix() string { - namePrefixes := r.GetNamePrefixes() - if len(namePrefixes) == 0 { - return "" - } - return namePrefixes[len(namePrefixes)-1] -} - -// Implements ResCtx GetOutermostNameSuffix -func (r *Resource) GetOutermostNameSuffix() string { - nameSuffixes := r.GetNameSuffixes() - if len(nameSuffixes) == 0 { - return "" - } - return nameSuffixes[len(nameSuffixes)-1] -} - func SameEndingSubarray(shortest, longest []string) bool { if len(shortest) > len(longest) { longest, shortest = shortest, longest