diff --git a/src/lolua/baselua.cpp b/src/lolua/baselua.cpp index 6021e46d..e61679bc 100644 --- a/src/lolua/baselua.cpp +++ b/src/lolua/baselua.cpp @@ -133,15 +133,6 @@ void Loader::Release(LuaState* l, Lolua::Loader* loader) } } -Lolua::Loader *LuaLoader::Find(LuaState* l) -{ - for (int i = 0; i < g_loaders.count(); ++i) - if (g_loaders[i].m1 == l) - return g_loaders[i].m2; - - return nullptr; -} - //Store lua object -------------------------------------------------------- void Loader::StoreObject(LuaState* l, Object* obj) { diff --git a/src/lolua/baselua.h b/src/lolua/baselua.h index 7a805b82..2774423d 100644 --- a/src/lolua/baselua.h +++ b/src/lolua/baselua.h @@ -995,7 +995,6 @@ public: protected: LuaState* GetLuaState(); static void Store(LuaState* l, Loader* loader); - static Loader *Find(LuaState* l); static void Release(LuaState* l, Loader* loader); static void StoreObject(LuaState* l, Object* obj); //Virtual Store lua object ------------------------------------------------