Skip to content

Commit 1d89cb5

Browse files
committed
small code cleanup
Signed-off-by: Maxime CLEMENT <maxime.clement@tier4.jp>
1 parent e5e91c1 commit 1d89cb5

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

planning/motion_velocity_planner/autoware_motion_velocity_out_of_lane_module/src/filter_predicted_objects.cpp

+1-4
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ std::optional<universe_utils::LineString2d> find_next_stop_line(
7474
auto earliest_intersecting_index = query_path.size();
7575
std::optional<universe_utils::LineString2d> earliest_stop_line;
7676
universe_utils::Segment2d path_segment;
77-
for (const auto & stop_line_node : query_results) {
78-
const auto & stop_line = stop_line_node.second;
77+
for (const auto & [_, stop_line] : query_results) {
7978
for (auto index = 0UL; index + 1 < query_path.size(); ++index) {
8079
path_segment.first = query_path[index];
8180
path_segment.second = query_path[index + 1];
@@ -84,8 +83,6 @@ std::optional<universe_utils::LineString2d> find_next_stop_line(
8483
std::any_of(stop_line.lanelets.begin(), stop_line.lanelets.end(), [&](const auto & ll) {
8584
return boost::geometry::within(path_segment.first, ll.polygon2d().basicPolygon());
8685
});
87-
for (const auto & ll : stop_line.lanelets) {
88-
}
8986
if (within_stop_line_lanelet) {
9087
earliest_intersecting_index = std::min(index, earliest_intersecting_index);
9188
earliest_stop_line = stop_line.stop_line;

0 commit comments

Comments
 (0)