From b1a9915632344cb75b15cf2ffc9142d18945902e Mon Sep 17 00:00:00 2001 From: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> Date: Sun, 30 Jul 2023 12:43:13 -0400 Subject: [PATCH] delete unused function Signed-off-by: Michael Crenshaw <350466+crenshaw-dev@users.noreply.github.com> --- util/lua/lua.go | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/util/lua/lua.go b/util/lua/lua.go index 705e28644ee11..d9849708e8c95 100644 --- a/util/lua/lua.go +++ b/util/lua/lua.go @@ -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