Skip to content

Commit 829eb42

Browse files
vishesh92Copilot
andauthored
Remove unused code
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 204eaf5 commit 829eb42

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

cloudstack/data_source_cloudstack_role.go

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,6 @@ func roleDescriptionAttributes(d *schema.ResourceData, role *cloudstack.Role) er
106106
return nil
107107
}
108108

109-
func latestRole(roles []*cloudstack.Role) (*cloudstack.Role, error) {
110-
// Since the Role struct doesn't have a Created field,
111-
// we'll just return the first role in the list
112-
if len(roles) > 0 {
113-
return roles[0], nil
114-
}
115-
return nil, fmt.Errorf("no roles found")
116-
}
117-
118109
func applyRoleFilters(role *cloudstack.Role, filters *schema.Set) (bool, error) {
119110
var roleJSON map[string]interface{}
120111
k, _ := json.Marshal(role)

0 commit comments

Comments
 (0)