Browse Source

Removed redundant definition of ChainShape:getChildCount.

Alex Szpakowski 10 years ago
parent
commit
34bf847913

+ 0 - 6
src/modules/physics/box2d/ChainShape.cpp

@@ -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;

+ 0 - 5
src/modules/physics/box2d/ChainShape.h

@@ -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.

+ 0 - 8
src/modules/physics/box2d/wrap_ChainShape.cpp

@@ -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 },

+ 0 - 1
src/modules/physics/box2d/wrap_ChainShape.h

@@ -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);