From dda3daad0bb373251423502479ff9f4ca50086fd Mon Sep 17 00:00:00 2001 From: kobayu858 Date: Thu, 29 Aug 2024 09:25:10 +0900 Subject: [PATCH] fix:unusedFunction Signed-off-by: kobayu858 --- .../autoware/behavior_velocity_crosswalk_module/util.hpp | 2 -- .../src/util.cpp | 6 ------ 2 files changed, 8 deletions(-) diff --git a/planning/behavior_velocity_planner/autoware_behavior_velocity_crosswalk_module/include/autoware/behavior_velocity_crosswalk_module/util.hpp b/planning/behavior_velocity_planner/autoware_behavior_velocity_crosswalk_module/include/autoware/behavior_velocity_crosswalk_module/util.hpp index 260ba58fd7d93..34e67cee12af2 100644 --- a/planning/behavior_velocity_planner/autoware_behavior_velocity_crosswalk_module/include/autoware/behavior_velocity_crosswalk_module/util.hpp +++ b/planning/behavior_velocity_planner/autoware_behavior_velocity_crosswalk_module/include/autoware/behavior_velocity_crosswalk_module/util.hpp @@ -95,8 +95,6 @@ std::set getCrosswalkIdSetOnPath( const tier4_planning_msgs::msg::PathWithLaneId & path, const lanelet::LaneletMapPtr lanelet_map, const std::shared_ptr & overall_graphs); -bool checkRegulatoryElementExistence(const lanelet::LaneletMapPtr & lanelet_map_ptr); - std::optional> getPathEndPointsOnCrosswalk( const PathWithLaneId & ego_path, const lanelet::BasicPolygon2d & polygon, diff --git a/planning/behavior_velocity_planner/autoware_behavior_velocity_crosswalk_module/src/util.cpp b/planning/behavior_velocity_planner/autoware_behavior_velocity_crosswalk_module/src/util.cpp index 755a32b08e024..a72c866a85cef 100644 --- a/planning/behavior_velocity_planner/autoware_behavior_velocity_crosswalk_module/src/util.cpp +++ b/planning/behavior_velocity_planner/autoware_behavior_velocity_crosswalk_module/src/util.cpp @@ -105,12 +105,6 @@ std::set getCrosswalkIdSetOnPath( return crosswalk_id_set; } -bool checkRegulatoryElementExistence(const lanelet::LaneletMapPtr & lanelet_map_ptr) -{ - const auto all_lanelets = lanelet::utils::query::laneletLayer(lanelet_map_ptr); - return !lanelet::utils::query::crosswalks(all_lanelets).empty(); -} - /** * @brief Calculate path end (= first and last) points on the crosswalk *