Removed unused function exec()

This commit is contained in:
jfrickmann
2021-09-11 07:35:48 -04:00
parent 3778ed26dd
commit ca478dccba
-14
View File
@@ -100,20 +100,6 @@ void luaSetInstructionsLimit(lua_State * L, int count)
#endif
}
void exec(int function, int nresults=0)
{
if (lsWidgets == 0) return;
if (function) {
luaSetInstructionsLimit(lsWidgets, WIDGET_SCRIPTS_MAX_INSTRUCTIONS);
lua_rawgeti(lsWidgets, LUA_REGISTRYINDEX, function);
if (lua_pcall(lsWidgets, 0, nresults, 0) != 0) {
TRACE("Error in theme %s", lua_tostring(lsWidgets, -1));
// TODO disable theme - revert back to default theme???
}
}
}
ZoneOption * createOptionsArray(int reference, uint8_t maxOptions)
{
if (reference == 0) {