From 21fa9b2ee27227c964fdeb8090d98255edb89bec Mon Sep 17 00:00:00 2001 From: Vaxry <43317083+vaxerski@users.noreply.github.com> Date: Sun, 3 May 2026 15:41:44 +0100 Subject: config/lua: fix dispatcher shapes to not be callable (#14268) this would only lead to abuse, explicitly forbid it --- src/config/lua/bindings/LuaBindingsInternal.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/config/lua/bindings/LuaBindingsInternal.cpp') diff --git a/src/config/lua/bindings/LuaBindingsInternal.cpp b/src/config/lua/bindings/LuaBindingsInternal.cpp index e0cef146..5f195805 100644 --- a/src/config/lua/bindings/LuaBindingsInternal.cpp +++ b/src/config/lua/bindings/LuaBindingsInternal.cpp @@ -449,11 +449,6 @@ CA::eTogglableAction Internal::tableToggleAction(lua_State* L, int idx, const ch return CA::TOGGLE_ACTION_TOGGLE; } -void Internal::setFn(lua_State* L, const char* name, lua_CFunction fn) { - lua_pushcfunction(L, fn); - lua_setfield(L, -2, name); -} - void Internal::setMgrFn(lua_State* L, CConfigManager* mgr, const char* name, lua_CFunction fn) { lua_pushlightuserdata(L, mgr); lua_pushcclosure(L, fn, 1); -- cgit v1.2.3