From b60aa5dd2be36a38fa3652a1d4fb0372f10f4fb8 Mon Sep 17 00:00:00 2001 From: Ramon Roche Date: Mon, 9 Feb 2026 15:10:27 -0800 Subject: [PATCH] ekf2, fw_mode_manager, fw_rate_control: remove unused using declarations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove using-declarations for math::constrain, math::max, and math::min that are never used — all call sites use the fully-qualified form (e.g. math::constrain()). Fixes misc-unused-using-decls clang-tidy diagnostic. Signed-off-by: Ramon Roche --- src/modules/ekf2/EKF2.cpp | 1 - src/modules/fw_mode_manager/FixedWingModeManager.cpp | 3 --- src/modules/fw_rate_control/FixedwingRateControl.cpp | 1 - 3 files changed, 5 deletions(-) diff --git a/src/modules/ekf2/EKF2.cpp b/src/modules/ekf2/EKF2.cpp index 4a3ddfc32f..98e2be7828 100644 --- a/src/modules/ekf2/EKF2.cpp +++ b/src/modules/ekf2/EKF2.cpp @@ -35,7 +35,6 @@ #include "EKF2.hpp" using namespace time_literals; -using math::constrain; using matrix::Eulerf; using matrix::Quatf; using matrix::Vector3f; diff --git a/src/modules/fw_mode_manager/FixedWingModeManager.cpp b/src/modules/fw_mode_manager/FixedWingModeManager.cpp index 0ac0d36264..1f752608ca 100644 --- a/src/modules/fw_mode_manager/FixedWingModeManager.cpp +++ b/src/modules/fw_mode_manager/FixedWingModeManager.cpp @@ -36,9 +36,6 @@ #include #include -using math::constrain; -using math::max; -using math::min; using math::radians; using matrix::Dcmf; diff --git a/src/modules/fw_rate_control/FixedwingRateControl.cpp b/src/modules/fw_rate_control/FixedwingRateControl.cpp index 3ae3272cfa..993d68bdd0 100644 --- a/src/modules/fw_rate_control/FixedwingRateControl.cpp +++ b/src/modules/fw_rate_control/FixedwingRateControl.cpp @@ -36,7 +36,6 @@ using namespace time_literals; using namespace matrix; -using math::constrain; using math::interpolate; using math::radians;