From 53e010a83269cfd469fffd836d28ec1eff7a0683 Mon Sep 17 00:00:00 2001 From: Bart van Strien Date: Tue, 20 Dec 2011 20:26:17 +0100 Subject: [PATCH] Remove all uses of LOVE_UNUSED, and simply not name the arguments instead --- src/modules/graphics/opengl/Graphics.cpp | 3 +-- src/modules/graphics/opengl/VertexBuffer.cpp | 3 +-- src/modules/thread/sdl/threads.h | 6 +++--- src/modules/thread/threads.h | 2 +- 4 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/modules/graphics/opengl/Graphics.cpp b/src/modules/graphics/opengl/Graphics.cpp index 9a70a0f66..dcce08386 100644 --- a/src/modules/graphics/opengl/Graphics.cpp +++ b/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 ) diff --git a/src/modules/graphics/opengl/VertexBuffer.cpp b/src/modules/graphics/opengl/VertexBuffer.cpp index 00893b5a0..12992d20b 100644 --- a/src/modules/graphics/opengl/VertexBuffer.cpp +++ b/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; } diff --git a/src/modules/thread/sdl/threads.h b/src/modules/thread/sdl/threads.h index 693a21b1e..fd1697f5a 100644 --- a/src/modules/thread/sdl/threads.h +++ b/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: diff --git a/src/modules/thread/threads.h b/src/modules/thread/threads.h index eb431e484..73dcd408d 100644 --- a/src/modules/thread/threads.h +++ b/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) {