@@ -140,7 +140,6 @@ static Engine *engine = nullptr;
140140static ProjectSettings *globals = nullptr ;
141141static Input *input = nullptr ;
142142static InputMap *input_map = nullptr ;
143- static WorkerThreadPool *worker_thread_pool = nullptr ;
144143static TranslationServer *translation_server = nullptr ;
145144static Performance *performance = nullptr ;
146145static PackedData *packed_data = nullptr ;
@@ -691,8 +690,6 @@ Error Main::test_setup() {
691690
692691 register_core_settings (); // Here globals are present.
693692
694- worker_thread_pool = memnew (WorkerThreadPool);
695-
696693 translation_server = memnew (TranslationServer);
697694 tsman = memnew (TextServerManager);
698695
@@ -803,8 +800,6 @@ void Main::test_cleanup() {
803800 ResourceSaver::remove_custom_savers ();
804801 PropertyListHelper::clear_base_helpers ();
805802
806- WorkerThreadPool::get_singleton ()->finish ();
807-
808803#ifdef TOOLS_ENABLED
809804 GDExtensionManager::get_singleton ()->deinitialize_extensions (GDExtension::INITIALIZATION_LEVEL_EDITOR);
810805 uninitialize_modules (MODULE_INITIALIZATION_LEVEL_EDITOR);
@@ -846,9 +841,6 @@ void Main::test_cleanup() {
846841 if (physics_server_2d_manager) {
847842 memdelete (physics_server_2d_manager);
848843 }
849- if (worker_thread_pool) {
850- memdelete (worker_thread_pool);
851- }
852844 if (globals) {
853845 memdelete (globals);
854846 }
@@ -939,7 +931,6 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
939931
940932 register_core_settings (); // here globals are present
941933
942- worker_thread_pool = memnew (WorkerThreadPool);
943934 translation_server = memnew (TranslationServer);
944935 performance = memnew (Performance);
945936 GDREGISTER_CLASS (Performance);
@@ -2629,10 +2620,6 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph
26292620 if (translation_server) {
26302621 memdelete (translation_server);
26312622 }
2632- if (worker_thread_pool) {
2633- worker_thread_pool->finish ();
2634- memdelete (worker_thread_pool);
2635- }
26362623 if (globals) {
26372624 memdelete (globals);
26382625 }
@@ -4514,8 +4501,6 @@ void Main::cleanup(bool p_force) {
45144501 ResourceLoader::clear_translation_remaps ();
45154502 ResourceLoader::clear_path_remaps ();
45164503
4517- WorkerThreadPool::get_singleton ()->finish ();
4518-
45194504 ScriptServer::finish_languages ();
45204505
45214506 // Sync pending commands that may have been queued from a different thread during ScriptServer finalization
@@ -4606,9 +4591,6 @@ void Main::cleanup(bool p_force) {
46064591 if (physics_server_2d_manager) {
46074592 memdelete (physics_server_2d_manager);
46084593 }
4609- if (worker_thread_pool) {
4610- memdelete (worker_thread_pool);
4611- }
46124594 if (globals) {
46134595 memdelete (globals);
46144596 }
0 commit comments