remove unnecessary warnings, initialize correctly
This commit is contained in:
committed by
Patrick Niklaus
parent
d12a95b4ef
commit
59168e21b4
@@ -35,8 +35,7 @@ namespace
|
||||
// invalidate a step and set its content to nothing
|
||||
void invalidateStep(RouteStep &step)
|
||||
{
|
||||
step = {};
|
||||
step.maneuver.instruction = TurnInstruction::NO_TURN();
|
||||
step = getInvalidRouteStep();
|
||||
}
|
||||
|
||||
void print(const std::vector<RouteStep> &steps)
|
||||
|
||||
@@ -42,7 +42,8 @@ FunctionalRoadClass functionalRoadClassFromTag(std::string const &value)
|
||||
}
|
||||
else
|
||||
{
|
||||
util::SimpleLogger().Write(logDEBUG) << "Unknown road class encountered: " << value;
|
||||
// TODO activate again, when road classes are moved to the profile
|
||||
// util::SimpleLogger().Write(logDEBUG) << "Unknown road class encountered: " << value;
|
||||
return FunctionalRoadClass::UNKNOWN;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -303,20 +303,7 @@ Intersection TurnHandler::handleComplexTurn(const EdgeID via_edge, Intersection
|
||||
}
|
||||
else
|
||||
{
|
||||
if (fallback_count++ < 10)
|
||||
{
|
||||
util::SimpleLogger().Write(logWARNING)
|
||||
<< "Resolved to keep fallback on complex turn assignment"
|
||||
<< "Straightmost: " << straightmost_turn;
|
||||
;
|
||||
for (const auto &road : intersection)
|
||||
{
|
||||
const auto &out_data = node_based_graph.GetEdgeData(road.turn.eid);
|
||||
util::SimpleLogger().Write(logWARNING)
|
||||
<< "road: " << toString(road) << " Name: " << out_data.name_id
|
||||
<< " Road Class: " << (int)out_data.road_classification.road_class;
|
||||
}
|
||||
}
|
||||
assignTrivialTurns(via_edge,intersection,1,intersection.size());
|
||||
}
|
||||
return intersection;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user