From 333eefb837fa0d1585204a844eb29099967bc35c Mon Sep 17 00:00:00 2001 From: "born a rick, raised a morty, died a jerry" Date: Mon, 26 Nov 2018 01:41:26 -0500 Subject: [PATCH] dont expose addchild to lua anymore (single use case eliminated) --- src/ActorFrame.cpp | 14 -------------- 1 file changed, 14 deletions(-) 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);