From c69e6fde124f90e1d2846d6aee45c74ed5179fef Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 19 Dec 2015 00:30:31 -0800 Subject: [PATCH] AI subsystem now does an orderly shutdown - remove special case logic which is no longer required --- src/Main/globals.cxx | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/Main/globals.cxx b/src/Main/globals.cxx index 084d77128..de3124dc4 100644 --- a/src/Main/globals.cxx +++ b/src/Main/globals.cxx @@ -211,21 +211,6 @@ FGGlobals::~FGGlobals() vw->stopThreading(); } -#if 0 - // The AIModels manager performs a number of actions upon - // Shutdown that implicitly assume that other subsystems - // are still operational (Due to the dynamic allocation and - // deallocation of AIModel objects. To ensure we can safely - // shut down all subsystems, make sure we take down the - // AIModels system first. - SGSubsystemRef ai = subsystem_mgr->get_subsystem("ai-model"); - if (ai) { - subsystem_mgr->remove("ai-model"); - ai->unbind(); - ai.clear(); // ensure AI is deleted now, not at end of this method - } -#endif - subsystem_mgr->shutdown(); subsystem_mgr->unbind(); -- 2.39.5