Skip to content

Commit

Permalink
delete unused function
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com>
  • Loading branch information
crenshaw-dev committed Jul 30, 2023
1 parent 068f5d5 commit b1a9915
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions util/lua/lua.go
Original file line number Diff line number Diff line change
Expand Up @@ -331,23 +331,6 @@ func isActionDisabled(actionsMap interface{}) bool {
return false
}

// iconClass gets the icon class from the actions map, if it exists
func iconClass(actionsMap interface{}) string {
actions, ok := actionsMap.(map[string]interface{})
if !ok {
return ""
}
for key, val := range actions {
switch vv := val.(type) {
case string:
if key == "iconClass" {
return vv
}
}
}
return ""
}

func emptyResourceActionFromLua(i interface{}) bool {
_, ok := i.([]interface{})
return ok
Expand Down

0 comments on commit b1a9915

Please sign in to comment.