summaryrefslogtreecommitdiff
path: root/src/mbgl/style/piecewisefunction_properties.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/piecewisefunction_properties.hpp')
-rw-r--r--src/mbgl/style/piecewisefunction_properties.hpp35
1 files changed, 0 insertions, 35 deletions
diff --git a/src/mbgl/style/piecewisefunction_properties.hpp b/src/mbgl/style/piecewisefunction_properties.hpp
deleted file mode 100644
index 491442958d..0000000000
--- a/src/mbgl/style/piecewisefunction_properties.hpp
+++ /dev/null
@@ -1,35 +0,0 @@
-#ifndef MBGL_STYLE_FADEDFUNCTION_PROPERTIES
-#define MBGL_STYLE_FADEDFUNCTION_PROPERTIES
-
-#include <mbgl/style/style_calculation_parameters.hpp>
-#include <mbgl/util/chrono.hpp>
-
-#include <mapbox/optional.hpp>
-
-#include <vector>
-
-namespace mbgl {
-
-template <typename T>
-struct PiecewiseConstantFunction {
- PiecewiseConstantFunction(const std::vector<std::pair<float, T>>& values_,
- mapbox::util::optional<Duration> duration_)
- : values(values_),
- duration(duration_) {
- }
-
- PiecewiseConstantFunction(const T& value)
- : values({{ 0, value }}),
- duration() {
- }
-
- T evaluate(const StyleCalculationParameters&) const;
-
-private:
- const std::vector<std::pair<float, T>> values;
- const mapbox::util::optional<Duration> duration;
-};
-
-}
-
-#endif