diff --git a/code/query/boolean.cxx b/code/query/boolean.cxx deleted file mode 100644 index 57335b3..0000000 --- a/code/query/boolean.cxx +++ /dev/null @@ -1,31 +0,0 @@ -#include - -namespace code::query -{ - - boolean_t:: - boolean_t(source_location_t origin, bool value) - : origin_{move(origin)}, value_{value} - {} - - source_location_t const& - boolean_t:: - origin() const - { - return origin_; - } - - bool - boolean_t:: - value() const - { - return value_; - } - - string - to_string(boolean_t const& boolean) - { - return boolean.value() ? "true" : "false"; - } - -} // namespace code::query diff --git a/code/query/boolean.hxx b/code/query/boolean.hxx deleted file mode 100644 index 667ab87..0000000 --- a/code/query/boolean.hxx +++ /dev/null @@ -1,32 +0,0 @@ -#ifndef code__query__boolean_hxx_ -#define code__query__boolean_hxx_ - -#include -#include - -namespace code::query -{ - - class boolean_t - { - public: - boolean_t(source_location_t, bool); - - source_location_t const& - origin() const; - - bool - value() const; - - private: - source_location_t origin_; - bool value_; - - }; - - string - to_string(boolean_t const&); - -} // namespace code::query - -#endif diff --git a/code/query/match.cxx b/code/query/match.cxx index b999647..f94c8e3 100644 --- a/code/query/match.cxx +++ b/code/query/match.cxx @@ -1,5 +1,4 @@ #include -#include #include #include #include @@ -15,7 +14,6 @@ namespace code::query class matcher_t : public visitor_t, public basic_visitor_t, - public basic_visitor_t, public basic_visitor_t, public basic_visitor_t, public basic_visitor_t, @@ -60,12 +58,6 @@ namespace code::query result = predicate_(e); } - void - visit(boolean_t const& e) override - { - result = e.value(); - } - void visit(logical_and_t const& e) override { diff --git a/code/query/syntactical-analyzer.cxx b/code/query/syntactical-analyzer.cxx index ffce29a..3048327 100644 --- a/code/query/syntactical-analyzer.cxx +++ b/code/query/syntactical-analyzer.cxx @@ -1,4 +1,3 @@ -#include #include #include #include