From c1ecf593d15d3d2130c925915e8ec25ebbdd82b1 Mon Sep 17 00:00:00 2001 From: Josh Yelon Date: Thu, 25 Feb 2021 14:11:56 -0500 Subject: [PATCH] Got rid of more userdata nonsense --- luprex/core/cpp/luastack.cpp | 6 ------ luprex/core/cpp/luastack.hpp | 2 -- 2 files changed, 8 deletions(-) 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;