Remove Fallback layers (closes #1819)

This commit is contained in:
Alexander Bock
2022-02-25 14:16:44 +01:00
parent d0fcec569c
commit 37f2e017ec
16 changed files with 46 additions and 65 deletions

View File

@@ -34,7 +34,6 @@
namespace {
constexpr const char* _loggerCat = "LayerGroup";
constexpr const char* KeyFallback = "Fallback";
constexpr openspace::properties::Property::PropertyInfo BlendTileInfo = {
"BlendTileLevels",
@@ -68,18 +67,6 @@ void LayerGroup::setLayersFromDict(const ghoul::Dictionary& dict) {
}
catch (const ghoul::RuntimeError& e) {
LERRORC(e.component, e.message);
if (layerDict.hasValue<ghoul::Dictionary>(KeyFallback)) {
LWARNING("Unable to create layer. Initializing fallback layer.");
ghoul::Dictionary fallbackLayerDict =
layerDict.value<ghoul::Dictionary>(KeyFallback);
try {
addLayer(fallbackLayerDict);
}
catch (const ghoul::RuntimeError& except) {
LERRORC(except.component, except.message);
}
}
}
}
}