remove unused debug code

This commit is contained in:
Dennis Luxen 2015-01-22 15:19:43 +01:00
parent 887032881a
commit 9175fb7da8

View File

@ -168,9 +168,8 @@ RestrictionParser::TryParse(const osmium::Relation &relation) const
continue; continue;
} }
BOOST_ASSERT(0 == strcmp("via", role)); BOOST_ASSERT(0 == strcmp("via", role));
// set the via node id
// SimpleLogger().Write() << "via: " << member.ref();
// set via node id
restriction_container.restriction.via.node = member.ref(); restriction_container.restriction.via.node = member.ref();
break; break;
@ -179,19 +178,17 @@ RestrictionParser::TryParse(const osmium::Relation &relation) const
0 == strcmp("via", role)); 0 == strcmp("via", role));
if (0 == strcmp("from", role)) if (0 == strcmp("from", role))
{ {
// SimpleLogger().Write() << "from: " << member.ref();
restriction_container.restriction.from.way = member.ref(); restriction_container.restriction.from.way = member.ref();
} }
else if (0 == strcmp("to", role)) else if (0 == strcmp("to", role))
{ {
// SimpleLogger().Write() << "to: " << member.ref();
restriction_container.restriction.to.way = member.ref(); restriction_container.restriction.to.way = member.ref();
} }
else if (0 == strcmp("via", role)) // else if (0 == strcmp("via", role))
{ // {
// not yet suppported // not yet suppported
// restriction_container.restriction.via.way = member.ref(); // restriction_container.restriction.via.way = member.ref();
} // }
break; break;
case osmium::item_type::relation: case osmium::item_type::relation:
// not yet supported, but who knows what the future holds... // not yet supported, but who knows what the future holds...
@ -202,14 +199,6 @@ RestrictionParser::TryParse(const osmium::Relation &relation) const
break; break;
} }
} }
// SimpleLogger().Write() << (restriction_container.restriction.flags.is_only ? "only" : "no")
// << "-restriction "
// << "<" << restriction_container.restriction.from.node << "->"
// << restriction_container.restriction.via.node << "->" <<
// restriction_container.restriction.to.node
// << ">";
return mapbox::util::optional<InputRestrictionContainer>(restriction_container); return mapbox::util::optional<InputRestrictionContainer>(restriction_container);
} }
@ -234,9 +223,9 @@ bool RestrictionParser::ShouldIgnoreRestriction(const std::string &except_tag_st
return std::any_of(std::begin(exceptions), std::end(exceptions), return std::any_of(std::begin(exceptions), std::end(exceptions),
[&](const std::string &current_string) [&](const std::string &current_string)
{ {
if (restriction_exceptions.end() != if (std::end(restriction_exceptions) !=
std::find(restriction_exceptions.begin(), std::find(std::begin(restriction_exceptions),
restriction_exceptions.end(), current_string)) std::end(restriction_exceptions), current_string))
{ {
return true; return true;
} }