mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-06-23 21:18:29 +02:00
Remove unused time stuff from editor.cpp
It was never used and didn't do anything. It looks like it was intended to be used but I guess time ran out or something, but it's too late now and level files don't have timestamps or anything, so might as well just remove it. Good thing too, because asctime() is apparently deprecated.
This commit is contained in:
parent
b5ff65c84e
commit
58308f9826
|
@ -9,7 +9,6 @@
|
|||
#include "Map.h"
|
||||
#include "Script.h"
|
||||
#include "UtilityClass.h"
|
||||
#include "time.h"
|
||||
|
||||
#include <tinyxml2.h>
|
||||
|
||||
|
@ -2037,20 +2036,6 @@ bool editorclass::save(std::string& _path)
|
|||
|
||||
msg = doc.NewElement( "MetaData" );
|
||||
|
||||
time_t rawtime;
|
||||
struct tm * timeinfo;
|
||||
|
||||
time ( &rawtime );
|
||||
timeinfo = localtime ( &rawtime );
|
||||
|
||||
std::string timeAndDate = asctime (timeinfo);
|
||||
|
||||
EditorData::GetInstance().timeModified = timeAndDate;
|
||||
if(EditorData::GetInstance().timeModified == "")
|
||||
{
|
||||
EditorData::GetInstance().timeCreated = timeAndDate;
|
||||
}
|
||||
|
||||
//getUser
|
||||
tinyxml2::XMLElement* meta = doc.NewElement( "Creator" );
|
||||
meta->LinkEndChild( doc.NewText( EditorData::GetInstance().creator.c_str() ));
|
||||
|
|
|
@ -89,8 +89,6 @@ class EditorData
|
|||
std::string creator;
|
||||
|
||||
std::string modifier;
|
||||
std::string timeCreated;
|
||||
std::string timeModified;
|
||||
|
||||
private:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user