Removed redundant definition of ChainShape:getChildCount.

This commit is contained in:
Alex Szpakowski
2015-04-27 19:08:02 -03:00
parent 6e92bd8302
commit 34bf847913
4 changed files with 0 additions and 20 deletions
-6
View File
@@ -85,12 +85,6 @@ EdgeShape *ChainShape::getChildEdge(int index) const
return new EdgeShape(e, true);
}
int ChainShape::getChildCount() const
{
b2ChainShape *c = (b2ChainShape *)shape;
return c->GetChildCount();
}
int ChainShape::getVertexCount() const
{
b2ChainShape *c = (b2ChainShape *)shape;
-5
View File
@@ -63,11 +63,6 @@ public:
**/
void setPreviousVertex(float x, float y);
/**
* Gets the number of children shapes.
**/
int getChildCount() const;
/**
* Returns a child EdgeShape.
* @param index The index of the child shape.
@@ -52,13 +52,6 @@ int w_ChainShape_setPreviousVertex(lua_State *L)
return 0;
}
int w_ChainShape_getChildCount(lua_State *L)
{
ChainShape *c = luax_checkchainshape(L, 1);
lua_pushinteger(L, c->getChildCount());
return 1;
}
int w_ChainShape_getChildEdge(lua_State *L)
{
ChainShape *c = luax_checkchainshape(L, 1);
@@ -109,7 +102,6 @@ static const luaL_Reg functions[] =
{
{ "setNextVertex", w_ChainShape_setNextVertex },
{ "setPreviousVertex", w_ChainShape_setPreviousVertex },
{ "getChildCount", w_ChainShape_getChildCount },
{ "getChildEdge", w_ChainShape_getChildEdge },
{ "getVertexCount", w_ChainShape_getVertexCount },
{ "getPoint", w_ChainShape_getPoint },
@@ -37,7 +37,6 @@ ChainShape *luax_checkchainshape(lua_State *L, int idx);
int w_ChainShape_setNextVertex(lua_State *L);
int w_ChainShape_setPreviousVertex(lua_State *L);
int w_ChainShape_getChildCount(lua_State *L);
int w_ChainShape_getChildEdge(lua_State *L);
int w_ChainShape_getVertexCount(lua_State *L);
int w_ChainShape_getPoint(lua_State *L);