diff --git a/luprex/core/cpp/luastack.cpp b/luprex/core/cpp/luastack.cpp index f97ae9b5..4de275fe 100644 --- a/luprex/core/cpp/luastack.cpp +++ b/luprex/core/cpp/luastack.cpp @@ -188,12 +188,6 @@ void LuaStack::makesubtable(LuaSlot sub, LuaSlot tab, const char *name) const { } } -void LuaStack::setlightuserdata(LuaSlot target, void *p) const { - lua_pushlightuserdata(L_, p); - lua_replace(L_, target); -} - - void LuaStack::check_nret(int xnret, int otop, int nret) const { int ntop = lua_gettop(L_); if ((nret != xnret)||(ntop != otop + xnret)) { diff --git a/luprex/core/cpp/luastack.hpp b/luprex/core/cpp/luastack.hpp index a016c6f5..9bb08cb7 100644 --- a/luprex/core/cpp/luastack.hpp +++ b/luprex/core/cpp/luastack.hpp @@ -415,8 +415,6 @@ public: void makesubtable(LuaSlot sub, LuaSlot tab, const char *name) const; - void setlightuserdata(LuaSlot target, void *p) const; - int next(LuaSlot tab, LuaSlot key, LuaSlot value) const; void makeclass(LuaSlot tab, LuaSlot name) const;