Browse Source

Removed ParticleSystem:getX/getY (resolves issue #633)

Alex Szpakowski 12 years ago
parent
commit
dc755ed375

+ 0 - 10
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);

+ 0 - 10
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:

+ 0 - 16
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 },

+ 0 - 2
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);