diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2010-02-19 10:53:23 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2010-02-19 10:53:23 +0200 |
commit | 17106842a129b349759e829f4ce3493c7d698799 (patch) | |
tree | 20c96831983d8ef9cc376015bca3525dc1e4b87b | |
parent | f6a14d74a62511977f87ba2e6f9116fc97fbb1a4 (diff) |
Remove unused traverser
-rw-r--r-- | xsde/cxx/elements.cxx | 24 | ||||
-rw-r--r-- | xsde/cxx/elements.hxx | 32 |
2 files changed, 0 insertions, 56 deletions
diff --git a/xsde/cxx/elements.cxx b/xsde/cxx/elements.cxx index 86d29e1..a67905d 100644 --- a/xsde/cxx/elements.cxx +++ b/xsde/cxx/elements.cxx @@ -1221,28 +1221,4 @@ namespace CXX if (st_) st_->leave (); } - - // Include - // - Void Includes:: - traverse (SemanticGraph::Path const& path) - { - // Try to use the portable representation of the path. If that - // fails, fall back to the native representation. - // - NarrowString path_str; - try - { - path_str = path.string (); - } - catch (SemanticGraph::InvalidPath const&) - { - path_str = path.native_file_string (); - } - - String hxx_path (expr_.merge (path_str)); - - ctx_.os << "#include " << ctx_.process_include_path (hxx_path) << endl - << endl; - } } diff --git a/xsde/cxx/elements.hxx b/xsde/cxx/elements.hxx index abd7206..a708cca 100644 --- a/xsde/cxx/elements.hxx +++ b/xsde/cxx/elements.hxx @@ -607,38 +607,6 @@ namespace CXX fundamental_template (t); } }; - - // - // - struct Includes : Traversal::Imports, - Traversal::Includes - { - typedef BackendElements::Regex::Expression<Char> Regex; - - Includes (Context& c, Regex const& expr) - : ctx_ (c), expr_ (expr) - { - } - - virtual Void - traverse (SemanticGraph::Imports& i) - { - traverse (i.path ()); - } - - virtual Void - traverse (SemanticGraph::Includes& i) - { - traverse (i.path ()); - } - - Void - traverse (SemanticGraph::Path const&); - - private: - Context& ctx_; - Regex expr_; - }; } #endif // CXX_TREE_ELEMENTS_HXX |