tenseleyflow/shithub / c4fc34f

Browse files

remove unused roleToDB

Authored by espadonne
SHA
c4fc34fde82b28e439e4c2381614e936581dbc20
Parents
7933ce9
Tree
1e89fc6

1 changed file

StatusFile+-
M internal/auth/policy/roles.go 0 5
internal/auth/policy/roles.gomodified
@@ -50,8 +50,3 @@ func RoleAtLeast(have, want Role) bool {
5050
 func roleFromDB(r policydb.CollabRole) Role {
5151
 	return Role(r)
5252
 }
53
-
54
-// roleToDB is the inverse, used by callers that mutate collaborators.
55
-func roleToDB(r Role) policydb.CollabRole {
56
-	return policydb.CollabRole(r)
57
-}