]> git.mxchange.org Git - flightgear.git/commitdiff
Remove unused variables
authorfredb <fredb>
Sun, 1 Jun 2008 14:59:20 +0000 (14:59 +0000)
committerfredb <fredb>
Sun, 1 Jun 2008 14:59:20 +0000 (14:59 +0000)
src/AIModel/AIManager.cxx
src/AIModel/submodel.cxx
src/Instrumentation/instrument_mgr.cxx

index bc56af32f9a1467c15d04e0fd8c871771b68c096..01bef48f21ac1ece71a9573d8b757eaf09812370 100644 (file)
@@ -335,7 +335,7 @@ FGAIManager::loadScenarioFile(const std::string& filename)
         SGPropertyNode_ptr root = new SGPropertyNode;
         readProperties(path.str(), root);
         return root;
-    } catch (const sg_exception &e) {
+    } catch (const sg_exception &) {
         SG_LOG(SG_GENERAL, SG_DEBUG, "Incorrect path specified for AI "
             "scenario: \"" << path.str() << "\"");
         return 0;
index 774820dc8343ffda2fb313b72d86c3ecfd78c1c4..af67c1d5a1f7cc6cc5d0edbef0f36d55cf8ed56c 100644 (file)
@@ -558,7 +558,7 @@ void FGSubmodelMgr::setData(int id, string& path, bool serviceable)
         SG_LOG(SG_GENERAL, SG_DEBUG,
                 "Submodels: Trying to read AI submodels file: " << config.str());
         readProperties(config.str(), &root);
-    } catch (const sg_exception &e) {
+    } catch (const sg_exception &) {
         SG_LOG(SG_GENERAL, SG_DEBUG,
                 "Submodels: Unable to read AI submodels file: " << config.str());
         return;
@@ -663,7 +663,7 @@ void FGSubmodelMgr::setSubData(int id, string& path, bool serviceable)
                 "Submodels: Trying to read AI submodels file: " << config.str());
         readProperties(config.str(), &root);
 
-    } catch (const sg_exception &e) {
+    } catch (const sg_exception &) {
         SG_LOG(SG_GENERAL, SG_DEBUG,
                 "Submodels: Unable to read AI submodels file: " << config.str());
         return;
index 99b8ddc1202cbecc7b6766a31b73ed398229a1ca..da82cce9529b2e35eb1999b9975f8e0888861340 100644 (file)
@@ -74,7 +74,7 @@ FGInstrumentMgr::FGInstrumentMgr ()
                         "Detected an internal inconsistency in the instrumentation\n"
                         "system specification file.  See earlier errors for details."));
             }
-        } catch (const sg_exception& exc) {
+        } catch (const sg_exception&) {
             SG_LOG( SG_ALL, SG_ALERT, "Failed to load instrumentation system model: "
                     << config.str() );
         }