From 17106842a129b349759e829f4ce3493c7d698799 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 19 Feb 2010 10:53:23 +0200 Subject: Remove unused traverser --- xsde/cxx/elements.cxx | 24 ------------------------ xsde/cxx/elements.hxx | 32 -------------------------------- 2 files changed, 56 deletions(-) (limited to 'xsde/cxx') 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 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 -- cgit v1.1