remove dead code
This commit is contained in:
parent
6218327fd2
commit
b18ea98497
|
@ -75,13 +75,3 @@ func (methodDef *Method) checkAndFormat(servicePath string, httpMethod string) e
|
||||||
|
|
||||||
return nil
|
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
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue