From 54dd4bb506fe6897f75d605711e8ba1836eee037 Mon Sep 17 00:00:00 2001 From: Andrew Burke <31974658+atburke@users.noreply.github.com> Date: Wed, 14 Aug 2024 12:46:24 -0700 Subject: [PATCH] Remove unused access request functions (#45489) --- lib/services/access_request.go | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/lib/services/access_request.go b/lib/services/access_request.go index ea4de529275d6..982d2713f2f41 100644 --- a/lib/services/access_request.go +++ b/lib/services/access_request.go @@ -1959,21 +1959,6 @@ func (m *RequestValidator) roleAllowsResource( return true, nil } -// TODO(atburke): Remove this once teleport.e reference is switched over -func GetResourceDetails(ctx context.Context, clusterName string, lister client.ListResourcesClient, ids []types.ResourceID) (map[string]types.ResourceDetails, error) { - return accessrequest.GetResourceDetails(ctx, clusterName, lister, ids) -} - -// TODO(atburke): Remove this once teleport.e reference is switched over -func GetResourceIDsByCluster(r types.AccessRequest) map[string][]types.ResourceID { - return accessrequest.GetResourceIDsByCluster(r) -} - -// TODO(atburke): Remove this once teleport.e reference is switched over -func GetResourcesByResourceIDs(ctx context.Context, lister client.ListResourcesClient, resourceIDs []types.ResourceID, opts ...accessrequest.ListResourcesRequestOption) ([]types.ResourceWithLabels, error) { - return accessrequest.GetResourcesByResourceIDs(ctx, lister, resourceIDs, opts...) -} - // resourceMatcherToMatcherSlice returns the resourceMatcher in a RoleMatcher slice // if the resourceMatcher is not nil, otherwise returns a nil slice. func resourceMatcherToMatcherSlice(resourceMatcher *KubeResourcesMatcher) []RoleMatcher {