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

This commit is contained in:
Bart van Strien
2011-12-20 20:26:17 +01:00
parent 9fb63dc4b8
commit 53e010a832
4 changed files with 6 additions and 8 deletions
+1 -2
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -63,7 +63,7 @@ namespace thread
private:
Mutex* mutex;
Lock(Lock& lock) {LOVE_UNUSED(lock);}
Lock(Lock&/* lock*/) {}
public:
Lock(Mutex* m): mutex(m) {