mirror of
https://github.com/love2d/love.git
synced 2026-08-16 08:11:02 +02:00
Removed redundant definition of ChainShape:getChildCount.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user