summaryrefslogtreecommitdiff
path: root/src/config/lua/bindings/LuaBindingsInternal.cpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2026-05-03 15:41:44 +0100
committerGitHub <noreply@github.com>2026-05-03 15:41:44 +0100
commit21fa9b2ee27227c964fdeb8090d98255edb89bec (patch)
tree2027ff3bea1c2a9ac55fd8287aaf67526bb9526b /src/config/lua/bindings/LuaBindingsInternal.cpp
parentc0933bffcf0394f7701ab134f6c308eaa9584bee (diff)
config/lua: fix dispatcher shapes to not be callable (#14268)
this would only lead to abuse, explicitly forbid it
Diffstat (limited to 'src/config/lua/bindings/LuaBindingsInternal.cpp')
-rw-r--r--src/config/lua/bindings/LuaBindingsInternal.cpp5
1 files changed, 0 insertions, 5 deletions
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);