From 1387ed06bdab3bfbc893fbe6d05e07de4cffb800 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Wed, 25 Aug 2021 13:22:19 +1000 Subject: [PATCH] AP_WindVane: remove empty contructors --- libraries/AP_WindVane/AP_WindVane_Airspeed.cpp | 6 ------ libraries/AP_WindVane/AP_WindVane_Airspeed.h | 2 +- libraries/AP_WindVane/AP_WindVane_Home.cpp | 6 ------ libraries/AP_WindVane/AP_WindVane_Home.h | 2 +- libraries/AP_WindVane/AP_WindVane_NMEA.cpp | 6 ------ libraries/AP_WindVane/AP_WindVane_NMEA.h | 2 +- libraries/AP_WindVane/AP_WindVane_RPM.cpp | 6 ------ libraries/AP_WindVane/AP_WindVane_RPM.h | 2 +- libraries/AP_WindVane/AP_WindVane_SITL.cpp | 6 ------ libraries/AP_WindVane/AP_WindVane_SITL.h | 3 ++- 10 files changed, 6 insertions(+), 35 deletions(-) diff --git a/libraries/AP_WindVane/AP_WindVane_Airspeed.cpp b/libraries/AP_WindVane/AP_WindVane_Airspeed.cpp index c06527cb2e..f52a857d22 100644 --- a/libraries/AP_WindVane/AP_WindVane_Airspeed.cpp +++ b/libraries/AP_WindVane/AP_WindVane_Airspeed.cpp @@ -15,12 +15,6 @@ #include "AP_WindVane_Airspeed.h" -// constructor -AP_WindVane_Airspeed::AP_WindVane_Airspeed(AP_WindVane &frontend) : - AP_WindVane_Backend(frontend) -{ -} - void AP_WindVane_Airspeed::update_speed() { const AP_Airspeed* airspeed = AP_Airspeed::get_singleton(); diff --git a/libraries/AP_WindVane/AP_WindVane_Airspeed.h b/libraries/AP_WindVane/AP_WindVane_Airspeed.h index 0f0bc748fe..8f69151bc4 100644 --- a/libraries/AP_WindVane/AP_WindVane_Airspeed.h +++ b/libraries/AP_WindVane/AP_WindVane_Airspeed.h @@ -22,7 +22,7 @@ class AP_WindVane_Airspeed : public AP_WindVane_Backend { public: // constructor - AP_WindVane_Airspeed(AP_WindVane &frontend); + using AP_WindVane_Backend::AP_WindVane_Backend; // update state void update_speed() override; diff --git a/libraries/AP_WindVane/AP_WindVane_Home.cpp b/libraries/AP_WindVane/AP_WindVane_Home.cpp index d621785bba..64ed706402 100644 --- a/libraries/AP_WindVane/AP_WindVane_Home.cpp +++ b/libraries/AP_WindVane/AP_WindVane_Home.cpp @@ -15,12 +15,6 @@ #include "AP_WindVane_Home.h" -// constructor -AP_WindVane_Home::AP_WindVane_Home(AP_WindVane &frontend) : - AP_WindVane_Backend(frontend) -{ -} - void AP_WindVane_Home::update_direction() { float direction_apparent_ef = _frontend._home_heading; diff --git a/libraries/AP_WindVane/AP_WindVane_Home.h b/libraries/AP_WindVane/AP_WindVane_Home.h index 7dc1271194..8a60d807a3 100644 --- a/libraries/AP_WindVane/AP_WindVane_Home.h +++ b/libraries/AP_WindVane/AP_WindVane_Home.h @@ -21,7 +21,7 @@ class AP_WindVane_Home : public AP_WindVane_Backend { public: // constructor - AP_WindVane_Home(AP_WindVane &frontend); + using AP_WindVane_Backend::AP_WindVane_Backend; // update state void update_direction() override; diff --git a/libraries/AP_WindVane/AP_WindVane_NMEA.cpp b/libraries/AP_WindVane/AP_WindVane_NMEA.cpp index f587d0846a..49e563022e 100644 --- a/libraries/AP_WindVane/AP_WindVane_NMEA.cpp +++ b/libraries/AP_WindVane/AP_WindVane_NMEA.cpp @@ -23,12 +23,6 @@ heavily based on RangeFinder NMEA library */ -// constructor -AP_WindVane_NMEA::AP_WindVane_NMEA(AP_WindVane &frontend) : - AP_WindVane_Backend(frontend) -{ -} - // init - performs any required initialization for this instance void AP_WindVane_NMEA::init(const AP_SerialManager& serial_manager) { diff --git a/libraries/AP_WindVane/AP_WindVane_NMEA.h b/libraries/AP_WindVane/AP_WindVane_NMEA.h index c58d7e6cb2..a5007d59c4 100644 --- a/libraries/AP_WindVane/AP_WindVane_NMEA.h +++ b/libraries/AP_WindVane/AP_WindVane_NMEA.h @@ -20,7 +20,7 @@ class AP_WindVane_NMEA : public AP_WindVane_Backend { public: // constructor - AP_WindVane_NMEA(AP_WindVane &frontend); + using AP_WindVane_Backend::AP_WindVane_Backend; // initialization void init(const AP_SerialManager& serial_manager) override; diff --git a/libraries/AP_WindVane/AP_WindVane_RPM.cpp b/libraries/AP_WindVane/AP_WindVane_RPM.cpp index 44aca4d955..a06ad5db3f 100644 --- a/libraries/AP_WindVane/AP_WindVane_RPM.cpp +++ b/libraries/AP_WindVane/AP_WindVane_RPM.cpp @@ -15,12 +15,6 @@ #include "AP_WindVane_RPM.h" -// constructor -AP_WindVane_RPM::AP_WindVane_RPM(AP_WindVane &frontend) : - AP_WindVane_Backend(frontend) -{ -} - void AP_WindVane_RPM::update_speed() { const AP_RPM* rpm = AP_RPM::get_singleton(); diff --git a/libraries/AP_WindVane/AP_WindVane_RPM.h b/libraries/AP_WindVane/AP_WindVane_RPM.h index aa79c23680..2959fc31ec 100644 --- a/libraries/AP_WindVane/AP_WindVane_RPM.h +++ b/libraries/AP_WindVane/AP_WindVane_RPM.h @@ -22,7 +22,7 @@ class AP_WindVane_RPM : public AP_WindVane_Backend { public: // constructor - AP_WindVane_RPM(AP_WindVane &frontend); + using AP_WindVane_Backend::AP_WindVane_Backend; // update state void update_speed() override; diff --git a/libraries/AP_WindVane/AP_WindVane_SITL.cpp b/libraries/AP_WindVane/AP_WindVane_SITL.cpp index 08d100c624..936ad2c63e 100644 --- a/libraries/AP_WindVane/AP_WindVane_SITL.cpp +++ b/libraries/AP_WindVane/AP_WindVane_SITL.cpp @@ -15,12 +15,6 @@ #include "AP_WindVane_SITL.h" -// constructor -AP_WindVane_SITL::AP_WindVane_SITL(AP_WindVane &frontend) : - AP_WindVane_Backend(frontend) -{ -} - #if CONFIG_HAL_BOARD == HAL_BOARD_SITL void AP_WindVane_SITL::update_direction() diff --git a/libraries/AP_WindVane/AP_WindVane_SITL.h b/libraries/AP_WindVane/AP_WindVane_SITL.h index 86d07b857d..c9d3bd68ae 100644 --- a/libraries/AP_WindVane/AP_WindVane_SITL.h +++ b/libraries/AP_WindVane/AP_WindVane_SITL.h @@ -19,8 +19,9 @@ class AP_WindVane_SITL : public AP_WindVane_Backend { public: + // constructor - AP_WindVane_SITL(AP_WindVane &frontend); + using AP_WindVane_Backend::AP_WindVane_Backend; // update state #if CONFIG_HAL_BOARD == HAL_BOARD_SITL