Browse Source

Remove all uses of LOVE_UNUSED, and simply not name the arguments instead

Bart van Strien 13 years ago
parent
commit
53e010a832

+ 1 - 2
src/modules/graphics/opengl/Graphics.cpp

@@ -587,7 +587,7 @@ namespace opengl
 		lineWidth = width;
 	}
 
-	void Graphics::setLineStyle(Graphics::LineStyle style )
+	void Graphics::setLineStyle(Graphics::LineStyle/* style*/ )
 	{
 		//// XXX: actually enables antialiasing for _all_ polygons.
 		//// may need investigation if wanted or not
@@ -599,7 +599,6 @@ namespace opengl
 		//	glEnable (GL_POLYGON_SMOOTH);
 		//	glHint (GL_POLYGON_SMOOTH_HINT, GL_NICEST);
 		//}
-		LOVE_UNUSED(style);
 	}
 
 	void Graphics::setLine( float width, Graphics::LineStyle style )

+ 1 - 2
src/modules/graphics/opengl/VertexBuffer.cpp

@@ -88,9 +88,8 @@ namespace opengl
 		delete [] buf;
 	}
 
-	void *VertexArray::map(GLenum access)
+	void *VertexArray::map(GLenum/* access*/)
 	{
-		LOVE_UNUSED(access);
 		return buf;
 	}
 

+ 3 - 3
src/modules/thread/sdl/threads.h

@@ -32,7 +32,7 @@ namespace thread
 	class Mutex {
 	private:
 		SDL_mutex* mutex;
-		Mutex(const Mutex& mutex) {LOVE_UNUSED(mutex);}
+		Mutex(const Mutex&/* mutex*/) {}
 
 		friend class Conditional;
 
@@ -49,7 +49,7 @@ namespace thread
 	class ThreadBase {
 	private:
 		SDL_Thread* thread;
-		ThreadBase(ThreadBase& thread) {LOVE_UNUSED(thread);}
+		ThreadBase(ThreadBase&/* thread*/) {}
 		bool running;
 
 		static int thread_runner(void* param);
@@ -71,7 +71,7 @@ namespace thread
 
 	class Semaphore {
 	private:
-		Semaphore(const Semaphore& sem) {LOVE_UNUSED(sem);}
+		Semaphore(const Semaphore&/* sem*/) {}
 		SDL_sem* semaphore;
 
 	public:

+ 1 - 1
src/modules/thread/threads.h

@@ -63,7 +63,7 @@ namespace thread
 	private:
 		Mutex* mutex;
 
-		Lock(Lock& lock) {LOVE_UNUSED(lock);}
+		Lock(Lock&/* lock*/) {}
 
 	public:
 		Lock(Mutex* m): mutex(m) {