From 4a850209d739111b539fc39bcf003abd6e061538 Mon Sep 17 00:00:00 2001 From: Alejandro Marzini Date: Sun, 20 Jun 2010 20:11:30 +0000 Subject: Removed getMillis, delayMillis and getTimeAndDate functions from TimerManager. svn-id: r50095 --- backends/timer/sdl/sdl-timer.cpp | 23 ----------------------- backends/timer/sdl/sdl-timer.h | 4 ---- 2 files changed, 27 deletions(-) (limited to 'backends/timer/sdl') 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 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; }; -- cgit v1.2.3