diff options
Diffstat (limited to 'include/mbgl/style/property_fallback.hpp')
-rw-r--r-- | include/mbgl/style/property_fallback.hpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/include/mbgl/style/property_fallback.hpp b/include/mbgl/style/property_fallback.hpp deleted file mode 100644 index 5c5eae0cd6..0000000000 --- a/include/mbgl/style/property_fallback.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#ifndef MBGL_STYLE_PROPERTY_FALLBACK -#define MBGL_STYLE_PROPERTY_FALLBACK - -#include <mbgl/style/property_key.hpp> -#include <mbgl/style/property_value.hpp> - -#include <map> - -namespace mbgl { - -class PropertyFallbackValue { -public: - static const PropertyValue &Get(PropertyKey key) { - auto it = properties.find(key); - if (it != properties.end()) { - return it->second; - } else { - return defaultProperty; - } - } - -private: - static const std::map<PropertyKey, PropertyValue> properties; - static const PropertyValue defaultProperty; -}; - -} - -#endif |