aboutsummaryrefslogtreecommitdiff
path: root/backends/timer/sdl
diff options
context:
space:
mode:
authorAlejandro Marzini2010-06-20 20:11:30 +0000
committerAlejandro Marzini2010-06-20 20:11:30 +0000
commit4a850209d739111b539fc39bcf003abd6e061538 (patch)
tree104183f5fffcea3b504fe28d102ac4def1f219aa /backends/timer/sdl
parent99c0f8260848ff758da3e40d9d816dc51974f793 (diff)
downloadscummvm-rg350-4a850209d739111b539fc39bcf003abd6e061538.tar.gz
scummvm-rg350-4a850209d739111b539fc39bcf003abd6e061538.tar.bz2
scummvm-rg350-4a850209d739111b539fc39bcf003abd6e061538.zip
Removed getMillis, delayMillis and getTimeAndDate functions from TimerManager.
svn-id: r50095
Diffstat (limited to 'backends/timer/sdl')
-rw-r--r--backends/timer/sdl/sdl-timer.cpp23
-rw-r--r--backends/timer/sdl/sdl-timer.h4
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;
};