Delete unused class
It's a remnant of old-style leaf_data parsing.
Change-Id: Icbe44f2b16f29b2048ef72d4c97fac152929a740
diff --git a/src/ast_handlers.hpp b/src/ast_handlers.hpp
index 5b5a152..0ab9a35 100644
--- a/src/ast_handlers.hpp
+++ b/src/ast_handlers.hpp
@@ -275,22 +275,6 @@
}
};
-// This handler only checks if the module exists
-// It doesn't set any ParserContext flags (except the error message)
-struct data_module_prefix_class {
- template <typename T, typename Iterator, typename Context>
- void on_success(Iterator const&, Iterator const&, T& ast, Context const& context)
- {
- auto& parserContext = x3::get<parser_context_tag>(context);
- const auto& schema = parserContext.m_schema;
-
- if (!schema.isModule(parserContext.currentSchemaPath(), ast.m_name)) {
- parserContext.m_errorMsg = "Invalid module name.";
- _pass(context) = false;
- }
- }
-};
-
struct set_class {
template <typename Iterator, typename Exception, typename Context>
x3::error_handler_result on_error(Iterator&, Iterator const&, Exception const& x, Context const& context)