From 58308f9826e5aeb179bf40596ce84ec23937e89c Mon Sep 17 00:00:00 2001 From: Misa Date: Sun, 19 Jul 2020 12:14:12 -0700 Subject: [PATCH] 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. --- desktop_version/src/editor.cpp | 15 --------------- desktop_version/src/editor.h | 2 -- 2 files changed, 17 deletions(-) diff --git a/desktop_version/src/editor.cpp b/desktop_version/src/editor.cpp index 369a8ebe..5ca107e6 100644 --- a/desktop_version/src/editor.cpp +++ b/desktop_version/src/editor.cpp @@ -9,7 +9,6 @@ #include "Map.h" #include "Script.h" #include "UtilityClass.h" -#include "time.h" #include @@ -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() )); diff --git a/desktop_version/src/editor.h b/desktop_version/src/editor.h index 072e9b80..bd34bedc 100644 --- a/desktop_version/src/editor.h +++ b/desktop_version/src/editor.h @@ -89,8 +89,6 @@ class EditorData std::string creator; std::string modifier; - std::string timeCreated; - std::string timeModified; private: