diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2018-03-01 16:02:56 -0800 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2018-03-01 17:02:26 -0800 |
commit | 54f3dc961e3a9e668312d7210706cddcf19676f7 (patch) | |
tree | 2606d627a67594a7146aa45e428052c596c99235 /src/mbgl/style/expression/compound_expression.cpp | |
parent | 15ba70b5ff018ec2285e0459bf557d1f61240c41 (diff) | |
download | qtlocation-mapboxgl-54f3dc961e3a9e668312d7210706cddcf19676f7.tar.gz |
Relax type checking for "length"
Diffstat (limited to 'src/mbgl/style/expression/compound_expression.cpp')
-rw-r--r-- | src/mbgl/style/expression/compound_expression.cpp | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/mbgl/style/expression/compound_expression.cpp b/src/mbgl/style/expression/compound_expression.cpp index 86d968c521..b1c2d74a9f 100644 --- a/src/mbgl/style/expression/compound_expression.cpp +++ b/src/mbgl/style/expression/compound_expression.cpp @@ -271,13 +271,6 @@ std::unordered_map<std::string, CompoundExpressionRegistry::Definition> initiali return object.at(key); }); - define("length", [](const std::vector<Value>& arr) -> Result<double> { - return arr.size(); - }); - define("length", [] (const std::string s) -> Result<double> { - return s.size(); - }); - define("properties", [](const EvaluationContext& params) -> Result<std::unordered_map<std::string, Value>> { if (!params.feature) { return EvaluationError { |