@@ -96,9 +96,8 @@ void RestrictionMap::FixupArrivingTurnRestriction(const NodeID node_u,
9696 std::vector<NodeID> predecessors;
9797 for (const EdgeID current_edge_id : m_graph->GetAdjacentEdgeRange (node_u))
9898 {
99- const EdgeData &edge_data = m_graph->GetEdgeData (current_edge_id);
10099 const NodeID target = m_graph->GetTarget (current_edge_id);
101- if (edge_data. backward && ( node_v != target) )
100+ if (node_v != target)
102101 {
103102 predecessors.push_back (target);
104103 }
@@ -163,11 +162,11 @@ NodeID RestrictionMap::CheckForEmanatingIsOnlyTurn(const NodeID node_u, const No
163162 return SPECIAL_NODEID;
164163 }
165164
166- auto restriction_iter = m_restriction_map.find ({node_u, node_v});
165+ const auto restriction_iter = m_restriction_map.find ({node_u, node_v});
167166 if (restriction_iter != m_restriction_map.end ())
168167 {
169168 const unsigned index = restriction_iter->second ;
170- auto &bucket = m_restriction_bucket_list.at (index);
169+ const auto &bucket = m_restriction_bucket_list.at (index);
171170 for (const RestrictionTarget &restriction_target : bucket)
172171 {
173172 if (restriction_target.is_only )
@@ -184,8 +183,6 @@ bool RestrictionMap::CheckIfTurnIsRestricted(const NodeID node_u,
184183 const NodeID node_v,
185184 const NodeID node_w) const
186185{
187- // return false;
188-
189186 BOOST_ASSERT (node_u != SPECIAL_NODEID);
190187 BOOST_ASSERT (node_v != SPECIAL_NODEID);
191188 BOOST_ASSERT (node_w != SPECIAL_NODEID);
@@ -195,7 +192,7 @@ bool RestrictionMap::CheckIfTurnIsRestricted(const NodeID node_u,
195192 return false ;
196193 }
197194
198- auto restriction_iter = m_restriction_map.find ({node_u, node_v});
195+ const auto restriction_iter = m_restriction_map.find ({node_u, node_v});
199196 if (restriction_iter != m_restriction_map.end ())
200197 {
201198 const unsigned index = restriction_iter->second ;
0 commit comments