Skip to content

Commit

Permalink
dont expose addchild to lua anymore (single use case eliminated)
Browse files Browse the repository at this point in the history
  • Loading branch information
MinaciousGrace committed Nov 26, 2018
1 parent 6b157fe commit 333eefb
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/ActorFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -792,19 +792,6 @@ class LunaActorFrame : public Luna<ActorFrame>
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<Actor>::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.
Expand Down Expand Up @@ -858,7 +845,6 @@ class LunaActorFrame : public Luna<ActorFrame>
ADD_METHOD(SetDiffuseLightColor);
ADD_METHOD(SetSpecularLightColor);
ADD_METHOD(SetLightDirection);
ADD_METHOD(AddChild);
ADD_METHOD(AddChildFromPath);
ADD_METHOD(RemoveChild);
ADD_METHOD(RemoveAllChildren);
Expand Down

0 comments on commit 333eefb

Please sign in to comment.