Skip to content

Commit d661028

Browse files
authored
fix(autoware_planning_validator): fix unusedFunction (#8646)
fix:unusedFunction Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
1 parent 7fea75b commit d661028

File tree

2 files changed

+0
-18
lines changed
  • planning/autoware_planning_validator

2 files changed

+0
-18
lines changed

planning/autoware_planning_validator/include/autoware/planning_validator/utils.hpp

-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,6 @@ namespace autoware::planning_validator
2828
using autoware_planning_msgs::msg::Trajectory;
2929
using autoware_planning_msgs::msg::TrajectoryPoint;
3030

31-
std::pair<double, size_t> getMaxValAndIdx(const std::vector<double> & v);
32-
33-
std::pair<double, size_t> getMinValAndIdx(const std::vector<double> & v);
34-
3531
std::pair<double, size_t> getAbsMaxValAndIdx(const std::vector<double> & v);
3632

3733
Trajectory resampleTrajectory(const Trajectory & trajectory, const double min_interval);

planning/autoware_planning_validator/src/utils.cpp

-14
Original file line numberDiff line numberDiff line change
@@ -46,20 +46,6 @@ void takeSmaller(double & v_min, size_t & i_min, double v, size_t i)
4646
}
4747
} // namespace
4848

49-
std::pair<double, size_t> getMaxValAndIdx(const std::vector<double> & v)
50-
{
51-
const auto iter = std::max_element(v.begin(), v.end());
52-
const auto idx = std::distance(v.begin(), iter);
53-
return {*iter, idx};
54-
}
55-
56-
std::pair<double, size_t> getMinValAndIdx(const std::vector<double> & v)
57-
{
58-
const auto iter = std::min_element(v.begin(), v.end());
59-
const auto idx = std::distance(v.begin(), iter);
60-
return {*iter, idx};
61-
}
62-
6349
std::pair<double, size_t> getAbsMaxValAndIdx(const std::vector<double> & v)
6450
{
6551
const auto iter = std::max_element(

0 commit comments

Comments
 (0)