diff --git a/src/ActorFrame.cpp b/src/ActorFrame.cpp index 11aadeb3d3..be34f9fbcf 100644 --- a/src/ActorFrame.cpp +++ b/src/ActorFrame.cpp @@ -792,19 +792,6 @@ class LunaActorFrame : public Luna p->SetLightDirection(vTmp); COMMON_RETURN_SELF; } - - static int AddChild(T* p, lua_State* L) - { - if (lua_isnoneornil(L, 1)) { - lua_pushboolean(L, 0); - return 1; - } - Actor* pActor = Luna::check(L, 1); - p->AddChild(pActor); - lua_pushboolean(L, 1); - return 1; - } - static int AddChildFromPath(T* p, lua_State* L) { // this one is tricky, we need to get an Actor from Lua. @@ -858,7 +845,6 @@ class LunaActorFrame : public Luna ADD_METHOD(SetDiffuseLightColor); ADD_METHOD(SetSpecularLightColor); ADD_METHOD(SetLightDirection); - ADD_METHOD(AddChild); ADD_METHOD(AddChildFromPath); ADD_METHOD(RemoveChild); ADD_METHOD(RemoveAllChildren);