From 5fa474e2091e746aaac5a3ccf6d68b0ff2b87db4 Mon Sep 17 00:00:00 2001 From: mfranz Date: Mon, 12 Jun 2006 15:39:38 +0000 Subject: [PATCH] - remove evil exit() - remove "enabled". It's unused, and that's a good thing: it wasn't initialized. --- src/Instrumentation/instrument_mgr.cxx | 14 ++++---------- src/Instrumentation/instrument_mgr.hxx | 2 -- 2 files changed, 4 insertions(+), 12 deletions(-) diff --git a/src/Instrumentation/instrument_mgr.cxx b/src/Instrumentation/instrument_mgr.cxx index bf0bce8ed..126faa19f 100644 --- a/src/Instrumentation/instrument_mgr.cxx +++ b/src/Instrumentation/instrument_mgr.cxx @@ -64,16 +64,10 @@ FGInstrumentMgr::FGInstrumentMgr () try { readProperties( config.str(), config_props ); - if ( build() ) { - enabled = true; - } else { - SG_LOG( SG_ALL, SG_ALERT, - "Detected an internal inconsistency in the instrumentation"); - SG_LOG( SG_ALL, SG_ALERT, - " system specification file. See earlier errors for" ); - SG_LOG( SG_ALL, SG_ALERT, - " details."); - exit(-1); + if ( !build() ) { + throw sg_throwable(string( + "Detected an internal inconsistency in the instrumentation\n" + "system specification file. See earlier errors for details.")); } } catch (const sg_exception& exc) { SG_LOG( SG_ALL, SG_ALERT, "Failed to load instrumentation system model: " diff --git a/src/Instrumentation/instrument_mgr.hxx b/src/Instrumentation/instrument_mgr.hxx index 88a9c8bed..0d0069733 100644 --- a/src/Instrumentation/instrument_mgr.hxx +++ b/src/Instrumentation/instrument_mgr.hxx @@ -35,8 +35,6 @@ public: private: SGPropertyNode *config_props; - bool enabled; - }; #endif // __INSTRUMENT_MGR_HXX -- 2.39.5