summaryrefslogtreecommitdiff
path: root/include/mbgl/style/expression/compound_expression.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/style/expression/compound_expression.hpp')
-rw-r--r--include/mbgl/style/expression/compound_expression.hpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/include/mbgl/style/expression/compound_expression.hpp b/include/mbgl/style/expression/compound_expression.hpp
index b54720a258..57a96d08a0 100644
--- a/include/mbgl/style/expression/compound_expression.hpp
+++ b/include/mbgl/style/expression/compound_expression.hpp
@@ -39,20 +39,13 @@ public:
optional<std::size_t> getParameterCount() const;
+ static bool exists(const std::string& name);
+
protected:
const detail::SignatureBase& signature;
std::vector<std::unique_ptr<Expression>> args;
};
-/*
- Holds the map of expression name => implementation (which is just one or
- more evaluation functions, each wrapped in a Signature struct).
-*/
-struct CompoundExpressionRegistry {
- using Definition = std::vector<std::unique_ptr<detail::SignatureBase>>;
- static std::unordered_map<std::string, Definition> definitions;
-};
-
ParseResult parseCompoundExpression(const std::string name,
const mbgl::style::conversion::Convertible& value,
ParsingContext& ctx);