From 07ddb15ccbfb4cf561007f4c13fe89b54b40ca91 Mon Sep 17 00:00:00 2001 From: Sergey Yershov Date: Fri, 4 Sep 2015 14:30:26 +0300 Subject: [PATCH] Remove unused code --- generator/osm2type.cpp | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/generator/osm2type.cpp b/generator/osm2type.cpp index 2bf395b9c2..95ec10a81c 100644 --- a/generator/osm2type.cpp +++ b/generator/osm2type.cpp @@ -103,25 +103,6 @@ namespace ftype }); } - bool is_name_tag(string const & k) - { - return (string::npos != k.find("name")); - } - - class do_print - { - ostream & m_s; - public: - typedef bool result_type; - - do_print(ostream & s) : m_s(s) {} - bool operator() (string const & k, string const & v) const - { - m_s << k << " <---> " << v << endl; - return false; - } - }; - class ExtractNames { set m_savedNames; @@ -179,7 +160,7 @@ namespace ftype bool is_good_tag(string const & k, string const & v) const { - if (is_name_tag(k)) + if (string::npos != k.find("name")) return false; if (!m_isKey)