remove dead code

This commit is contained in:
Adrien Marquès 2019-11-21 22:20:12 +01:00
parent e9c7160d2e
commit aba95d4163
Signed by: xdrm-brackets
GPG Key ID: D75243CA236D825E
1 changed files with 0 additions and 10 deletions

View File

@ -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
}