diff --git a/src/modules/graphics/opengl/ParticleSystem.cpp b/src/modules/graphics/opengl/ParticleSystem.cpp index 2b1d787b8..1bd007d04 100644 --- a/src/modules/graphics/opengl/ParticleSystem.cpp +++ b/src/modules/graphics/opengl/ParticleSystem.cpp @@ -439,16 +439,6 @@ const love::Vector &ParticleSystem::getPosition() const return position; } -float ParticleSystem::getX() const -{ - return position.getX(); -} - -float ParticleSystem::getY() const -{ - return position.getY(); -} - void ParticleSystem::setAreaSpread(AreaSpreadDistribution distribution, float x, float y) { areaSpread = love::Vector(x, y); diff --git a/src/modules/graphics/opengl/ParticleSystem.h b/src/modules/graphics/opengl/ParticleSystem.h index 1524d4bd2..ed6ea1f8b 100644 --- a/src/modules/graphics/opengl/ParticleSystem.h +++ b/src/modules/graphics/opengl/ParticleSystem.h @@ -169,16 +169,6 @@ public: **/ const love::Vector &getPosition() const; - /** - * Returns the x-coordinate of the emitter's position. - **/ - float getX() const; - - /** - * Returns the y-coordinate of the emitter's position. - **/ - float getY() const; - /** * Sets the emission area spread parameters and distribution type. The interpretation of * the parameters depends on the distribution type: diff --git a/src/modules/graphics/opengl/wrap_ParticleSystem.cpp b/src/modules/graphics/opengl/wrap_ParticleSystem.cpp index 2442f17e3..b4594a4c5 100644 --- a/src/modules/graphics/opengl/wrap_ParticleSystem.cpp +++ b/src/modules/graphics/opengl/wrap_ParticleSystem.cpp @@ -174,20 +174,6 @@ int w_ParticleSystem_getPosition(lua_State *L) return 2; } -int w_ParticleSystem_getX(lua_State *L) -{ - ParticleSystem *t = luax_checkparticlesystem(L, 1); - lua_pushnumber(L, t->getX()); - return 1; -} - -int w_ParticleSystem_getY(lua_State *L) -{ - ParticleSystem *t = luax_checkparticlesystem(L, 1); - lua_pushnumber(L, t->getY()); - return 1; -} - int w_ParticleSystem_setAreaSpread(lua_State *L) { ParticleSystem *t = luax_checkparticlesystem(L, 1); @@ -655,8 +641,6 @@ static const luaL_Reg functions[] = { "getParticleLifetime", w_ParticleSystem_getParticleLifetime }, { "setPosition", w_ParticleSystem_setPosition }, { "getPosition", w_ParticleSystem_getPosition }, - { "getX", w_ParticleSystem_getX }, - { "getY", w_ParticleSystem_getY }, { "setAreaSpread", w_ParticleSystem_setAreaSpread }, { "getAreaSpread", w_ParticleSystem_getAreaSpread }, { "setDirection", w_ParticleSystem_setDirection }, diff --git a/src/modules/graphics/opengl/wrap_ParticleSystem.h b/src/modules/graphics/opengl/wrap_ParticleSystem.h index 53fcd3799..43812fc62 100644 --- a/src/modules/graphics/opengl/wrap_ParticleSystem.h +++ b/src/modules/graphics/opengl/wrap_ParticleSystem.h @@ -48,8 +48,6 @@ int w_ParticleSystem_setParticleLifetime(lua_State *L); int w_ParticleSystem_getParticleLifetime(lua_State *L); int w_ParticleSystem_setPosition(lua_State *L); int w_ParticleSystem_getPosition(lua_State *L); -int w_ParticleSystem_getX(lua_State *L); -int w_ParticleSystem_getY(lua_State *L); int w_ParticleSystem_setAreaSpread(lua_State *L); int w_ParticleSystem_getAreaSpread(lua_State *L); int w_ParticleSystem_setDirection(lua_State *L);