]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/globals.cxx
Pull Ephemeris out of FGGlobals
[flightgear.git] / src / Main / globals.cxx
index 084d77128ae73cb6b86f92532c36b34c67f7e5fe..ff86ee15bd9779626fc94876bb830327b3afdad4 100644 (file)
@@ -157,7 +157,6 @@ FGGlobals::FGGlobals() :
     fg_root( "" ),
     fg_home( "" ),
     time_params( NULL ),
-    ephem( NULL ),
     commands( SGCommandMgr::instance() ),
     channel_options_list( NULL ),
     initial_waypoints( NULL ),
@@ -211,21 +210,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();