Material: remove several unreferenced variables
This commit is contained in:
@@ -279,7 +279,7 @@ std::shared_ptr<Material> MaterialLibrary::getMaterialByPath(const QString& path
|
||||
auto material = _materialPathMap->at(filePath);
|
||||
return material;
|
||||
}
|
||||
catch (std::out_of_range& e) {
|
||||
catch (std::out_of_range&) {
|
||||
throw MaterialNotFound();
|
||||
}
|
||||
}
|
||||
@@ -291,7 +291,7 @@ const QString MaterialLibrary::getUUIDFromPath(const QString& path) const
|
||||
auto material = _materialPathMap->at(filePath);
|
||||
return material->getUUID();
|
||||
}
|
||||
catch (std::out_of_range& e) {
|
||||
catch (std::out_of_range&) {
|
||||
throw MaterialNotFound();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -414,7 +414,7 @@ void MaterialLoader::dereference(
|
||||
try {
|
||||
parent = materialMap->at(parentUUID);
|
||||
}
|
||||
catch (std::out_of_range& e) {
|
||||
catch (std::out_of_range&) {
|
||||
Base::Console().Log(
|
||||
"Unable to apply inheritance for material '%s', parent '%s' not found.\n",
|
||||
material->getName().toStdString().c_str(),
|
||||
|
||||
@@ -114,7 +114,7 @@ std::shared_ptr<Material> MaterialManager::getMaterial(const QString& uuid) cons
|
||||
try {
|
||||
return _materialMap->at(uuid);
|
||||
}
|
||||
catch (std::out_of_range& e) {
|
||||
catch (std::out_of_range&) {
|
||||
throw MaterialNotFound();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ const QString ModelLoader::getUUIDFromPath(const QString& path)
|
||||
const QString uuid = QString::fromStdString(yamlroot[base]["UUID"].as<std::string>());
|
||||
return uuid;
|
||||
}
|
||||
catch (YAML::Exception& ex) {
|
||||
catch (YAML::Exception&) {
|
||||
throw ModelNotFound();
|
||||
}
|
||||
}
|
||||
@@ -190,7 +190,7 @@ void ModelLoader::dereference(std::shared_ptr<ModelEntry> model,
|
||||
std::shared_ptr<ModelEntry> child = (*_modelEntryMap)[nodeName];
|
||||
dereference(model->getUUID(), model, child, inheritances);
|
||||
}
|
||||
catch (const std::out_of_range& oor) {
|
||||
catch (const std::out_of_range&) {
|
||||
Base::Console().Log("Unable to find '%s' in model map\n",
|
||||
nodeName.toStdString().c_str());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user