Removed the default OSystem::getTimeAndDate() implementation

svn-id: r32138
This commit is contained in:
Max Horn 2008-05-15 11:36:56 +00:00
parent 732d440d19
commit 6206fb2a18
2 changed files with 6 additions and 12 deletions

View File

@ -35,8 +35,6 @@
#include "gui/message.h"
#include "sound/mixer.h"
#include <time.h>
OSystem *g_system = 0;
OSystem::OSystem() {
@ -124,14 +122,6 @@ void OSystem::clearScreen() {
unlockScreen();
}
void OSystem::getTimeAndDate(struct tm &t) const {
#ifndef __PLAYSTATION2__
// PS2SDK doesn't provide localtime, so this code doesn't compile
time_t curTime = time(0);
t = *localtime(&curTime);
#endif
}
/*
* Include header files needed for the getFilesystemFactory() method.
*

View File

@ -727,8 +727,12 @@ public:
/** Delay/sleep for the specified amount of milliseconds. */
virtual void delayMillis(uint msecs) = 0;
/** Get the current time and date. Correspond to time()+localtime(). */
virtual void getTimeAndDate(struct tm &t) const;
/**
* Get the current time and date, in the local timezone.
* Corresponds on many systems to the combination of time()
* and localtime().
*/
virtual void getTimeAndDate(struct tm &t) const = 0;
/**
* Return the timer manager singleton. For more information, refer