Skip to content

Commit

Permalink
fix(autoware_behavior_path_start_planner_module): fix unusedFunction (a…
Browse files Browse the repository at this point in the history
…utowarefoundation#8659)

fix:unusedFunction

Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
  • Loading branch information
kobayu858 authored and a-maumau committed Sep 2, 2024
1 parent e3773c9 commit 167dd42
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 83 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ PathWithLaneId getBackwardPath(
const Pose & current_pose, const Pose & backed_pose, const double velocity);
lanelet::ConstLanelets getPullOutLanes(
const std::shared_ptr<const PlannerData> & planner_data, const double backward_length);
Pose getBackedPose(
const Pose & current_pose, const double & yaw_shoulder_lane, const double & back_distance);
std::optional<PathWithLaneId> extractCollisionCheckSection(
const PullOutPath & path, const double collision_check_distance_from_end);
} // namespace autoware::behavior_path_planner::start_planner_utils
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#include "autoware/behavior_path_planner_common/utils/path_safety_checker/objects_filtering.hpp"
#include "autoware/behavior_path_planner_common/utils/path_safety_checker/path_safety_checker_parameters.hpp"
#include "autoware/behavior_path_planner_common/utils/path_utils.hpp"
#include "autoware/behavior_path_start_planner_module/debug.hpp"
#include "autoware/behavior_path_start_planner_module/util.hpp"
#include "autoware/motion_utils/trajectory/trajectory.hpp"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,17 +72,6 @@ PathWithLaneId getBackwardPath(
return backward_path;
}

Pose getBackedPose(
const Pose & current_pose, const double & yaw_shoulder_lane, const double & back_distance)
{
Pose backed_pose;
backed_pose = current_pose;
backed_pose.position.x -= std::cos(yaw_shoulder_lane) * back_distance;
backed_pose.position.y -= std::sin(yaw_shoulder_lane) * back_distance;

return backed_pose;
}

lanelet::ConstLanelets getPullOutLanes(
const std::shared_ptr<const PlannerData> & planner_data, const double backward_length)
{
Expand All @@ -103,6 +92,7 @@ lanelet::ConstLanelets getPullOutLanes(
/*forward_only_in_route*/ true);
}

// cppcheck-suppress unusedFunction
std::optional<PathWithLaneId> extractCollisionCheckSection(
const PullOutPath & path, const double collision_check_distance_from_end)
{
Expand Down

0 comments on commit 167dd42

Please sign in to comment.