|
@@ -132,7 +132,6 @@ static InputMap *input_map = nullptr;
|
|
static TranslationServer *translation_server = nullptr;
|
|
static TranslationServer *translation_server = nullptr;
|
|
static Performance *performance = nullptr;
|
|
static Performance *performance = nullptr;
|
|
static PackedData *packed_data = nullptr;
|
|
static PackedData *packed_data = nullptr;
|
|
-static Time *time_singleton = nullptr;
|
|
|
|
#ifdef MINIZIP_ENABLED
|
|
#ifdef MINIZIP_ENABLED
|
|
static ZipArchive *zip_packed_data = nullptr;
|
|
static ZipArchive *zip_packed_data = nullptr;
|
|
#endif
|
|
#endif
|
|
@@ -783,7 +782,6 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
|
|
MAIN_PRINT("Main: Initialize Globals");
|
|
MAIN_PRINT("Main: Initialize Globals");
|
|
|
|
|
|
input_map = memnew(InputMap);
|
|
input_map = memnew(InputMap);
|
|
- time_singleton = memnew(Time);
|
|
|
|
globals = memnew(ProjectSettings);
|
|
globals = memnew(ProjectSettings);
|
|
|
|
|
|
register_core_settings(); //here globals are present
|
|
register_core_settings(); //here globals are present
|
|
@@ -2289,9 +2287,6 @@ error:
|
|
if (input_map) {
|
|
if (input_map) {
|
|
memdelete(input_map);
|
|
memdelete(input_map);
|
|
}
|
|
}
|
|
- if (time_singleton) {
|
|
|
|
- memdelete(time_singleton);
|
|
|
|
- }
|
|
|
|
if (translation_server) {
|
|
if (translation_server) {
|
|
memdelete(translation_server);
|
|
memdelete(translation_server);
|
|
}
|
|
}
|
|
@@ -4030,9 +4025,6 @@ void Main::cleanup(bool p_force) {
|
|
if (input_map) {
|
|
if (input_map) {
|
|
memdelete(input_map);
|
|
memdelete(input_map);
|
|
}
|
|
}
|
|
- if (time_singleton) {
|
|
|
|
- memdelete(time_singleton);
|
|
|
|
- }
|
|
|
|
if (translation_server) {
|
|
if (translation_server) {
|
|
memdelete(translation_server);
|
|
memdelete(translation_server);
|
|
}
|
|
}
|