Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6c53f20

Browse files
kobayu858kyoichi-sugahara
authored andcommittedAug 27, 2024
fix(control_performance_analysis): fix unusedFunction (autowarefoundation#8557)
fix:unusedFunction Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
1 parent a954980 commit 6c53f20

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed
 

‎control/control_performance_analysis/include/control_performance_analysis/control_performance_analysis_utils.hpp

-4
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,6 @@ inline geometry_msgs::msg::Quaternion createOrientationMsgFromYaw(double yaw_ang
7979
// p-points a, b contains [x, y] coordinates.
8080
double determinant(std::array<double, 2> const & a, std::array<double, 2> const & b);
8181

82-
double triangleArea(
83-
std::array<double, 2> const & a, std::array<double, 2> const & b,
84-
std::array<double, 2> const & c);
85-
8682
double curvatureFromThreePoints(
8783
std::array<double, 2> const & a, std::array<double, 2> const & b,
8884
std::array<double, 2> const & c);

‎control/control_performance_analysis/src/control_performance_analysis_utils.cpp

-10
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,5 @@ double determinant(std::array<double, 2> const & a, std::array<double, 2> const
2525
return a[0] * b[1] - b[0] * a[1];
2626
}
2727

28-
double triangleArea(
29-
std::array<double, 2> const & a, std::array<double, 2> const & b, std::array<double, 2> const & c)
30-
{
31-
double m1 = determinant(a, b);
32-
double m2 = determinant(b, c);
33-
double m3 = determinant(c, a);
34-
35-
return 0.5 * (m1 + m2 + m3);
36-
}
37-
3828
} // namespace utils
3929
} // namespace control_performance_analysis

0 commit comments

Comments
 (0)
Please sign in to comment.