From b18ea9849708b705dd69e20b207b3f046c818b99 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Thu, 21 Nov 2019 22:20:12 +0100 Subject: [PATCH] remove dead code --- internal/config/method.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/internal/config/method.go b/internal/config/method.go index a17df24..802766d 100644 --- a/internal/config/method.go +++ b/internal/config/method.go @@ -75,13 +75,3 @@ func (methodDef *Method) checkAndFormat(servicePath string, httpMethod string) e return nil } - -// scopeHasPermission returns whether the permission fulfills a given scope -func scopeHasPermission(permission string, scope []string) bool { - for _, s := range scope { - if permission == s { - return true - } - } - return false -}