1
0
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:
Misa 2020-07-19 12:14:12 -07:00 committed by Ethan Lee
parent b5ff65c84e
commit 58308f9826
2 changed files with 0 additions and 17 deletions

View File

@ -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() ));

View File

@ -89,8 +89,6 @@ class EditorData
std::string creator;
std::string modifier;
std::string timeCreated;
std::string timeModified;
private: