Material: remove several unreferenced variables

This commit is contained in:
wmayer
2023-10-11 11:17:57 +02:00
committed by wwmayer
parent 14f2653c40
commit a6ff03d54b
4 changed files with 6 additions and 6 deletions

View File

@@ -127,7 +127,7 @@ const Material& MaterialLibrary::getMaterialByPath(const QString& path) const
Material* material = _materialPathMap->at(filePath);
return *material;
}
catch (std::out_of_range& e) {
catch (std::out_of_range&) {
throw MaterialNotFound();
}
}
@@ -139,7 +139,7 @@ const QString MaterialLibrary::getUUIDFromPath(const QString& path) const
Material* material = _materialPathMap->at(filePath);
return material->getUUID();
}
catch (std::out_of_range& e) {
catch (std::out_of_range&) {
throw MaterialNotFound();
}
}

View File

@@ -258,7 +258,7 @@ void MaterialLoader::dereference(Material* material)
try {
parent = (*_materialMap)[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(),

View File

@@ -107,7 +107,7 @@ const Material& MaterialManager::getMaterial(const QString& uuid) const
try {
return *(_materialMap->at(uuid));
}
catch (std::out_of_range& e) {
catch (std::out_of_range&) {
throw MaterialNotFound();
}
}

View File

@@ -84,7 +84,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();
}
}
@@ -188,7 +188,7 @@ void ModelLoader::dereference(ModelEntry* model,
const 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());
}