diff --git a/pkg/resmap/resmap.go b/pkg/resmap/resmap.go index 821b5b34c..2aec36b00 100644 --- a/pkg/resmap/resmap.go +++ b/pkg/resmap/resmap.go @@ -89,10 +89,6 @@ type ResMap interface { // an exact match, returning an error on multiple or no matches. GetByOriginalId(resid.ResId) (*resource.Resource, error) - // Deprecated. - // Same as GetByOriginalId. - GetById(resid.ResId) (*resource.Resource, error) - // GroupedByNamespace returns a map of namespace // to a slice of *Resource in that namespace. // Resources for whom IsNamespaceableKind is false are @@ -351,11 +347,6 @@ func demandOneMatch( return nil, fmt.Errorf("no matches for %sId %s", s, id) } -// GetById implements ResMap. -func (m *resWrangler) GetById(id resid.ResId) (*resource.Resource, error) { - return m.GetByCurrentId(id) -} - // GroupedByNamespace implements ResMap.GroupByNamespace func (m *resWrangler) GroupedByNamespace() map[string][]*resource.Resource { items := m.groupedByNamespace()