diff --git a/src/modules/physics/box2d/Fixture.cpp b/src/modules/physics/box2d/Fixture.cpp index b07b98092..58cb74072 100644 --- a/src/modules/physics/box2d/Fixture.cpp +++ b/src/modules/physics/box2d/Fixture.cpp @@ -132,15 +132,6 @@ namespace box2d if (!s) s = new Shape(fixture->GetShape()); return s; } - - Fixture * Fixture::getNext() const - { - b2Fixture * f = fixture->GetNext(); - if (!f) return NULL; - Fixture * fix = (Fixture *)Memoizer::find(f); - if (!fix) fix = new Fixture(f); - return fix; - } void Fixture::setFilterData(int * v) { diff --git a/src/modules/physics/box2d/Fixture.h b/src/modules/physics/box2d/Fixture.h index 69734d770..a1060667b 100644 --- a/src/modules/physics/box2d/Fixture.h +++ b/src/modules/physics/box2d/Fixture.h @@ -105,11 +105,6 @@ namespace box2d **/ Body * getBody() const; - /** - * Gets the next Fixture attached to the parent Body. - **/ - Fixture * getNext() const; - /** * Sets the filter data. An integer array is used even though the * first two elements are unsigned shorts. The elements are: diff --git a/src/modules/physics/box2d/wrap_Fixture.cpp b/src/modules/physics/box2d/wrap_Fixture.cpp index c420f38e6..bc758f4db 100644 --- a/src/modules/physics/box2d/wrap_Fixture.cpp +++ b/src/modules/physics/box2d/wrap_Fixture.cpp @@ -122,16 +122,6 @@ namespace box2d luax_newtype(L, "Shape", PHYSICS_SHAPE_T, (void*)shape); return 1; } - - int w_Fixture_getNext(lua_State * L) - { - Fixture * t = luax_checkfixture(L, 1); - Fixture * f = t->getNext(); - if (f == 0) return 0; - f->retain(); - luax_newtype(L, "Fixture", PHYSICS_FIXTURE_T, (void*)f); - return 1; - } int w_Fixture_testPoint(lua_State * L) { @@ -264,7 +254,6 @@ namespace box2d { "getDensity", w_Fixture_getDensity }, { "getBody", w_Fixture_getBody }, { "getShape", w_Fixture_getShape }, - { "getNext", w_Fixture_getNext }, { "isSensor", w_Fixture_isSensor }, { "testPoint", w_Fixture_testPoint }, { "rayCast", w_Fixture_rayCast }, diff --git a/src/modules/physics/box2d/wrap_Fixture.h b/src/modules/physics/box2d/wrap_Fixture.h index 675ab7342..d41f6b25a 100644 --- a/src/modules/physics/box2d/wrap_Fixture.h +++ b/src/modules/physics/box2d/wrap_Fixture.h @@ -43,7 +43,6 @@ namespace box2d int w_Fixture_isSensor(lua_State * L); int w_Fixture_getBody(lua_State * L); int w_Fixture_getShape(lua_State * L); - int w_Fixture_getNext(lua_State * L); int w_Fixture_testPoint(lua_State * L); int w_Fixture_rayCast(lua_State * L); int w_Fixture_setFilterData(lua_State * L);