From 43373a7c6ca186dea3d4289f2842e1bc1571628b Mon Sep 17 00:00:00 2001 From: kobayu858 <129580202+kobayu858@users.noreply.github.com> Date: Fri, 20 Sep 2024 15:05:26 +0900 Subject: [PATCH] fix(tier4_localization_rviz_plugin): fix unmatchedSuppression (#8919) fix:unmatchedSuppression Signed-off-by: kobayu858 --- .../src/pose_history/pose_history_display.cpp | 1 - .../pose_with_covariance_history_display.cpp | 4 ---- 2 files changed, 5 deletions(-) diff --git a/common/tier4_localization_rviz_plugin/src/pose_history/pose_history_display.cpp b/common/tier4_localization_rviz_plugin/src/pose_history/pose_history_display.cpp index 85c8a81ea7932..d427f63628d69 100644 --- a/common/tier4_localization_rviz_plugin/src/pose_history/pose_history_display.cpp +++ b/common/tier4_localization_rviz_plugin/src/pose_history/pose_history_display.cpp @@ -44,7 +44,6 @@ PoseHistory::PoseHistory() : last_stamp_(0, 0, RCL_ROS_TIME) PoseHistory::~PoseHistory() = default; // Properties are deleted by Qt -// cppcheck-suppress unusedFunction void PoseHistory::onInitialize() { MFDClass::onInitialize(); diff --git a/common/tier4_localization_rviz_plugin/src/pose_with_covariance_history/pose_with_covariance_history_display.cpp b/common/tier4_localization_rviz_plugin/src/pose_with_covariance_history/pose_with_covariance_history_display.cpp index c8fde566c5211..42f36ed6f4c08 100644 --- a/common/tier4_localization_rviz_plugin/src/pose_with_covariance_history/pose_with_covariance_history_display.cpp +++ b/common/tier4_localization_rviz_plugin/src/pose_with_covariance_history/pose_with_covariance_history_display.cpp @@ -92,19 +92,16 @@ void PoseWithCovarianceHistory::onInitialize() lines_ = std::make_unique(scene_manager_, scene_node_); } -// cppcheck-suppress unusedFunction void PoseWithCovarianceHistory::onEnable() { subscribe(); } -// cppcheck-suppress unusedFunction void PoseWithCovarianceHistory::onDisable() { unsubscribe(); } -// cppcheck-suppress unusedFunction void PoseWithCovarianceHistory::update(float wall_dt, float ros_dt) { (void)wall_dt; @@ -151,7 +148,6 @@ void PoseWithCovarianceHistory::update_shape_type() property_arrow_color_->setHidden(!is_arrow); } -// cppcheck-suppress unusedFunction void PoseWithCovarianceHistory::processMessage( const geometry_msgs::msg::PoseWithCovarianceStamped::ConstSharedPtr message) {