diff --git a/libraries/AP_Relay/AP_Relay.h b/libraries/AP_Relay/AP_Relay.h index 35aa164da8..42cc09c0ee 100644 --- a/libraries/AP_Relay/AP_Relay.h +++ b/libraries/AP_Relay/AP_Relay.h @@ -17,9 +17,7 @@ /// @brief Class to manage the ArduPilot relay class AP_Relay { public: - static AP_Relay create() { return AP_Relay{}; } - - constexpr AP_Relay(AP_Relay &&other) = default; + AP_Relay(); /* Do not allow copies */ AP_Relay(const AP_Relay &other) = delete; @@ -43,8 +41,6 @@ public: static const struct AP_Param::GroupInfo var_info[]; private: - AP_Relay(); - AP_Int8 _pin[AP_RELAY_NUM_RELAYS]; AP_Int8 _default; };