Skip to content

Commit e1d3e3c

Browse files
committed
remove unused function
1 parent e30250a commit e1d3e3c

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

enterprise/coderd/templates.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -305,15 +305,6 @@ func convertTemplateUsers(tus []database.TemplateUser, orgIDsByUserIDs map[uuid.
305305
return users
306306
}
307307

308-
func validateTemplateRole(role codersdk.TemplateRole) error {
309-
actions := db2sdk.TemplateRoleActions(role)
310-
if len(actions) == 0 && role != codersdk.TemplateRoleDeleted {
311-
return xerrors.Errorf("role %q is not a valid Template role", role)
312-
}
313-
314-
return nil
315-
}
316-
317308
func convertToTemplateRole(actions []policy.Action) codersdk.TemplateRole {
318309
switch {
319310
case len(actions) == 2 && slice.SameElements(actions, []policy.Action{policy.ActionUse, policy.ActionRead}):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy