diff options
Diffstat (limited to 'backends/timer/sdl')
-rw-r--r-- | backends/timer/sdl/sdl-timer.cpp | 23 | ||||
-rw-r--r-- | backends/timer/sdl/sdl-timer.h | 4 |
2 files changed, 0 insertions, 27 deletions
diff --git a/backends/timer/sdl/sdl-timer.cpp b/backends/timer/sdl/sdl-timer.cpp index 4fcd2f2ac7..0fbe12589e 100644 --- a/backends/timer/sdl/sdl-timer.cpp +++ b/backends/timer/sdl/sdl-timer.cpp @@ -27,8 +27,6 @@ #if defined(WIN32) || defined(UNIX) || defined(MACOSX) #include "backends/timer/sdl/sdl-timer.h" -#include "common/EventRecorder.h" -#include <time.h> static Uint32 timer_handler(Uint32 interval, void *param) { ((DefaultTimerManager *)param)->handler(); @@ -47,25 +45,4 @@ SdlTimerManager::~SdlTimerManager() { SDL_RemoveTimer(_timerID); } -uint32 SdlTimerManager::getMillis() { - uint32 millis = SDL_GetTicks(); - g_eventRec.processMillis(millis); - return millis; -} - -void SdlTimerManager::delayMillis(uint msecs) { - SDL_Delay(msecs); -} - -void SdlTimerManager::getTimeAndDate(TimeDate &td) const { - time_t curTime = time(0); - struct tm t = *localtime(&curTime); - td.tm_sec = t.tm_sec; - td.tm_min = t.tm_min; - td.tm_hour = t.tm_hour; - td.tm_mday = t.tm_mday; - td.tm_mon = t.tm_mon; - td.tm_year = t.tm_year; -} - #endif diff --git a/backends/timer/sdl/sdl-timer.h b/backends/timer/sdl/sdl-timer.h index 0c9669f042..19629151ca 100644 --- a/backends/timer/sdl/sdl-timer.h +++ b/backends/timer/sdl/sdl-timer.h @@ -39,10 +39,6 @@ public: SdlTimerManager(); ~SdlTimerManager(); - uint32 getMillis(); - void delayMillis(uint msecs); - void getTimeAndDate(TimeDate &t) const; - protected: SDL_TimerID _timerID; }; |