From f9adb453dd184a287eff28bb2907938e1ebbf46b Mon Sep 17 00:00:00 2001 From: Philipp Wiesemann Date: Wed, 18 Feb 2015 21:31:21 +0100 Subject: [PATCH] Removed redundant include statements from test programs. The needed header files are already included with SDL.h. Still including them in the test programs is confusing because it somehow suggests they would be needed. --- test/loopwave.c | 1 - test/testatomic.c | 3 --- test/testerror.c | 1 - test/testfile.c | 1 - test/testhaptic.c | 2 -- test/testhotplug.c | 1 - test/testlock.c | 2 -- test/testmessage.c | 1 - test/testplatform.c | 3 --- test/testrumble.c | 2 -- test/testsem.c | 1 - test/testthread.c | 1 - test/torturethread.c | 1 - 13 files changed, 20 deletions(-) diff --git a/test/loopwave.c b/test/loopwave.c index 9d50aaea5327a..e09fe0f72bbe2 100644 --- a/test/loopwave.c +++ b/test/loopwave.c @@ -29,7 +29,6 @@ #endif #include "SDL.h" -#include "SDL_audio.h" struct { diff --git a/test/testatomic.c b/test/testatomic.c index 662a017ca05ee..178de7ac17e3e 100644 --- a/test/testatomic.c +++ b/test/testatomic.c @@ -12,9 +12,6 @@ #include #include "SDL.h" -#include "SDL_atomic.h" -#include "SDL_assert.h" -#include "SDL_cpuinfo.h" /* Absolutely basic tests just to see if we get the expected value diff --git a/test/testerror.c b/test/testerror.c index 1fa60885bda92..8290680e0af54 100644 --- a/test/testerror.c +++ b/test/testerror.c @@ -17,7 +17,6 @@ #include #include "SDL.h" -#include "SDL_thread.h" static int alive = 0; diff --git a/test/testfile.c b/test/testfile.c index 172da865c054d..38a6bb7996162 100644 --- a/test/testfile.c +++ b/test/testfile.c @@ -22,7 +22,6 @@ #endif #include "SDL.h" -#include "SDL_endian.h" #include diff --git a/test/testhaptic.c b/test/testhaptic.c index ac8ab4158f835..bffe4467de40d 100644 --- a/test/testhaptic.c +++ b/test/testhaptic.c @@ -22,8 +22,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND #ifndef SDL_HAPTIC_DISABLED -#include "SDL_haptic.h" - static SDL_Haptic *haptic; diff --git a/test/testhotplug.c b/test/testhotplug.c index ba06dea0f4d14..1b68db1e4fa39 100644 --- a/test/testhotplug.c +++ b/test/testhotplug.c @@ -17,7 +17,6 @@ #include #include "SDL.h" -#include "SDL_haptic.h" #if !defined SDL_JOYSTICK_DISABLED && !defined SDL_HAPTIC_DISABLED diff --git a/test/testlock.c b/test/testlock.c index 9ca3ca19940fe..92a5e9b3ffd69 100644 --- a/test/testlock.c +++ b/test/testlock.c @@ -19,8 +19,6 @@ #include /* for atexit() */ #include "SDL.h" -#include "SDL_mutex.h" -#include "SDL_thread.h" static SDL_mutex *mutex = NULL; static SDL_threadID mainthread; diff --git a/test/testmessage.c b/test/testmessage.c index f44880c3f2d1a..b0bf39c897349 100644 --- a/test/testmessage.c +++ b/test/testmessage.c @@ -17,7 +17,6 @@ #include #include "SDL.h" -#include "SDL_thread.h" /* Call this instead of exit(), so we can clean up SDL: atexit() is evil. */ static void diff --git a/test/testplatform.c b/test/testplatform.c index e0dc29e7cfb4d..232bfe65337bc 100644 --- a/test/testplatform.c +++ b/test/testplatform.c @@ -13,9 +13,6 @@ #include #include "SDL.h" -#include "SDL_endian.h" -#include "SDL_cpuinfo.h" -#include "SDL_assert.h" /* * Watcom C flags these as Warning 201: "Unreachable code" if you just diff --git a/test/testrumble.c b/test/testrumble.c index 74a7e98fc3fb2..d72e5d94af843 100644 --- a/test/testrumble.c +++ b/test/testrumble.c @@ -33,8 +33,6 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND #ifndef SDL_HAPTIC_DISABLED -#include "SDL_haptic.h" - static SDL_Haptic *haptic; diff --git a/test/testsem.c b/test/testsem.c index ca71ec2e65b62..8d41e083fc35b 100644 --- a/test/testsem.c +++ b/test/testsem.c @@ -17,7 +17,6 @@ #include #include "SDL.h" -#include "SDL_thread.h" #define NUM_THREADS 10 diff --git a/test/testthread.c b/test/testthread.c index d732320a5ea93..75aed83fc22be 100644 --- a/test/testthread.c +++ b/test/testthread.c @@ -17,7 +17,6 @@ #include #include "SDL.h" -#include "SDL_thread.h" static SDL_TLSID tls; static int alive = 0; diff --git a/test/torturethread.c b/test/torturethread.c index bc4e1132f64a3..2e572b64c6816 100644 --- a/test/torturethread.c +++ b/test/torturethread.c @@ -18,7 +18,6 @@ #include #include "SDL.h" -#include "SDL_thread.h" #define NUMTHREADS 10