diff --git a/libraries/AP_Compass/AP_Compass.cpp b/libraries/AP_Compass/AP_Compass.cpp index 877ceb53eb..69239ecbbc 100644 --- a/libraries/AP_Compass/AP_Compass.cpp +++ b/libraries/AP_Compass/AP_Compass.cpp @@ -1724,12 +1724,6 @@ uint8_t Compass::get_num_enabled(void) const return count; } -void -Compass::set_use_for_yaw(uint8_t i, bool use) -{ - _use_for_yaw[Priority(i)].set(use); -} - void Compass::set_declination(float radians, bool save_to_eeprom) { diff --git a/libraries/AP_Compass/AP_Compass.h b/libraries/AP_Compass/AP_Compass.h index 3dbb679306..bb795ab588 100644 --- a/libraries/AP_Compass/AP_Compass.h +++ b/libraries/AP_Compass/AP_Compass.h @@ -212,8 +212,6 @@ public: bool use_for_yaw(uint8_t i) const; bool use_for_yaw(void) const; - void set_use_for_yaw(uint8_t i, bool use); - /// Sets the local magnetic field declination. /// /// @param radians Local field declination.