diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2018-07-31 14:21:47 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-31 14:21:47 -0700 |
commit | 9bdd765a02de75851a00ab85223d5d582a104757 (patch) | |
tree | bcb417a47808a4a94c171b083c7f2e2cce457107 /src/mbgl/style/conversion/stringify.hpp | |
parent | 885f6e3c02138398d094e49243817a83349b4d50 (diff) | |
download | qtlocation-mapboxgl-9bdd765a02de75851a00ab85223d5d582a104757.tar.gz |
[core] Merge DataDrivenPropertyValue into PropertyValue (#12513)
Diffstat (limited to 'src/mbgl/style/conversion/stringify.hpp')
-rw-r--r-- | src/mbgl/style/conversion/stringify.hpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/src/mbgl/style/conversion/stringify.hpp b/src/mbgl/style/conversion/stringify.hpp index 77a39c51f9..3d188b6390 100644 --- a/src/mbgl/style/conversion/stringify.hpp +++ b/src/mbgl/style/conversion/stringify.hpp @@ -2,7 +2,6 @@ #include <mbgl/style/filter.hpp> #include <mbgl/style/property_value.hpp> -#include <mbgl/style/data_driven_property_value.hpp> #include <mbgl/util/enum.hpp> #include <mbgl/util/color.hpp> #include <mbgl/util/feature.hpp> @@ -155,19 +154,6 @@ void stringify(Writer& writer, const PropertyValue<T>& value) { } } -template <class Writer, class T> -void stringify(Writer& writer, const DataDrivenPropertyValue<T>& v) { - v.evaluate([&] (const auto& v_) { stringify(writer, v_); }); -} - -template <class Property, class Writer, class T> -void stringify(Writer& writer, const DataDrivenPropertyValue<T>& value) { - if (!value.isUndefined()) { - writer.Key(Property::key); - stringify(writer, value); - } -} - } // namespace conversion } // namespace style } // namespace mbgl |