From 911fbc27d40ae5e1db3a5ed450d55ab8e270c357 Mon Sep 17 00:00:00 2001 From: Gianmaria Del Monte Date: Mon, 17 Oct 2022 10:31:42 +0200 Subject: [PATCH] removed unused function --- internal/grpc/interceptors/auth/scope.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/internal/grpc/interceptors/auth/scope.go b/internal/grpc/interceptors/auth/scope.go index 8b171ee640..78d481ad36 100644 --- a/internal/grpc/interceptors/auth/scope.go +++ b/internal/grpc/interceptors/auth/scope.go @@ -389,16 +389,6 @@ func extractRef(req interface{}, tokenScope map[string]*authpb.Scope) (*provider return nil, false } -func extractShareRef(req interface{}) (*collaboration.ShareReference, bool) { - switch v := req.(type) { - case *collaboration.GetReceivedShareRequest: - return v.GetRef(), true - case *collaboration.UpdateReceivedShareRequest: - return &collaboration.ShareReference{Spec: &collaboration.ShareReference_Id{Id: v.GetShare().GetShare().GetId()}}, true - } - return nil, false -} - func getRefKey(ref *provider.Reference) string { if ref.Path != "" { return ref.Path