Remove unused variables
This commit is contained in:
parent
af879b8310
commit
68124ca36d
3 changed files with 4 additions and 4 deletions
|
@ -335,7 +335,7 @@ FGAIManager::loadScenarioFile(const std::string& filename)
|
||||||
SGPropertyNode_ptr root = new SGPropertyNode;
|
SGPropertyNode_ptr root = new SGPropertyNode;
|
||||||
readProperties(path.str(), root);
|
readProperties(path.str(), root);
|
||||||
return root;
|
return root;
|
||||||
} catch (const sg_exception &e) {
|
} catch (const sg_exception &) {
|
||||||
SG_LOG(SG_GENERAL, SG_DEBUG, "Incorrect path specified for AI "
|
SG_LOG(SG_GENERAL, SG_DEBUG, "Incorrect path specified for AI "
|
||||||
"scenario: \"" << path.str() << "\"");
|
"scenario: \"" << path.str() << "\"");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
|
@ -558,7 +558,7 @@ void FGSubmodelMgr::setData(int id, string& path, bool serviceable)
|
||||||
SG_LOG(SG_GENERAL, SG_DEBUG,
|
SG_LOG(SG_GENERAL, SG_DEBUG,
|
||||||
"Submodels: Trying to read AI submodels file: " << config.str());
|
"Submodels: Trying to read AI submodels file: " << config.str());
|
||||||
readProperties(config.str(), &root);
|
readProperties(config.str(), &root);
|
||||||
} catch (const sg_exception &e) {
|
} catch (const sg_exception &) {
|
||||||
SG_LOG(SG_GENERAL, SG_DEBUG,
|
SG_LOG(SG_GENERAL, SG_DEBUG,
|
||||||
"Submodels: Unable to read AI submodels file: " << config.str());
|
"Submodels: Unable to read AI submodels file: " << config.str());
|
||||||
return;
|
return;
|
||||||
|
@ -663,7 +663,7 @@ void FGSubmodelMgr::setSubData(int id, string& path, bool serviceable)
|
||||||
"Submodels: Trying to read AI submodels file: " << config.str());
|
"Submodels: Trying to read AI submodels file: " << config.str());
|
||||||
readProperties(config.str(), &root);
|
readProperties(config.str(), &root);
|
||||||
|
|
||||||
} catch (const sg_exception &e) {
|
} catch (const sg_exception &) {
|
||||||
SG_LOG(SG_GENERAL, SG_DEBUG,
|
SG_LOG(SG_GENERAL, SG_DEBUG,
|
||||||
"Submodels: Unable to read AI submodels file: " << config.str());
|
"Submodels: Unable to read AI submodels file: " << config.str());
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -74,7 +74,7 @@ FGInstrumentMgr::FGInstrumentMgr ()
|
||||||
"Detected an internal inconsistency in the instrumentation\n"
|
"Detected an internal inconsistency in the instrumentation\n"
|
||||||
"system specification file. See earlier errors for details."));
|
"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: "
|
SG_LOG( SG_ALL, SG_ALERT, "Failed to load instrumentation system model: "
|
||||||
<< config.str() );
|
<< config.str() );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue