remove unused roleToDB
- SHA
c4fc34fde82b28e439e4c2381614e936581dbc20- Parents
-
7933ce9 - Tree
1e89fc6
c4fc34f
c4fc34fde82b28e439e4c2381614e936581dbc207933ce9
1e89fc6| Status | File | + | - |
|---|---|---|---|
| M |
internal/auth/policy/roles.go
|
0 | 5 |
internal/auth/policy/roles.gomodified@@ -50,8 +50,3 @@ func RoleAtLeast(have, want Role) bool { | ||
| 50 | 50 | func roleFromDB(r policydb.CollabRole) Role { |
| 51 | 51 | return Role(r) |
| 52 | 52 | } |
| 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 | -} | |