diff options
Diffstat (limited to 'include/mbgl/style/function/categorical_stops.hpp')
-rw-r--r-- | include/mbgl/style/function/categorical_stops.hpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/include/mbgl/style/function/categorical_stops.hpp b/include/mbgl/style/function/categorical_stops.hpp deleted file mode 100644 index c8505115ab..0000000000 --- a/include/mbgl/style/function/categorical_stops.hpp +++ /dev/null @@ -1,40 +0,0 @@ -#pragma once - -#include <mbgl/util/feature.hpp> -#include <mbgl/util/variant.hpp> - -#include <cassert> -#include <utility> -#include <map> - -namespace mbgl { -namespace style { - -class CategoricalValue : public variant<bool, int64_t, std::string> { -public: - using variant<bool, int64_t, std::string>::variant; -}; - -template <class T> -class CategoricalStops { -public: - using Stops = std::map<CategoricalValue, T>; - - Stops stops; - - CategoricalStops() = default; - CategoricalStops(Stops stops_) - : stops(std::move(stops_)) { - assert(stops.size() > 0); - } - - optional<T> evaluate(const Value&) const; - - friend bool operator==(const CategoricalStops& lhs, - const CategoricalStops& rhs) { - return lhs.stops == rhs.stops; - } -}; - -} // namespace style -} // namespace mbgl |