From 2582159d1ae07d6d530c1384fcb223c300f9399f Mon Sep 17 00:00:00 2001 From: Iampete1 Date: Sat, 4 Sep 2021 20:21:48 +0100 Subject: [PATCH] Plane: mode.h remove init method --- ArduPlane/mode.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/ArduPlane/mode.h b/ArduPlane/mode.h index 733c241ba0..f2bd6cf06b 100644 --- a/ArduPlane/mode.h +++ b/ArduPlane/mode.h @@ -61,9 +61,6 @@ public: // run controllers specific to this mode virtual void run() {}; - // init function, used only be quadplane modes, to be factored in to _enter() in the future - virtual void init() {}; - // returns a unique number specific to this mode virtual Number mode_number() const = 0; @@ -466,8 +463,6 @@ public: void run() override; - void init() override; - protected: private: @@ -492,8 +487,6 @@ public: void run() override; - void init() override; - protected: bool _enter() override; @@ -517,8 +510,6 @@ public: void run() override; - void init() override; - protected: bool _enter() override; @@ -539,8 +530,6 @@ public: void run() override; - void init() override; - bool allows_arming() const override { return false; } protected: @@ -563,8 +552,6 @@ public: void run() override; - void init() override; - bool allows_arming() const override { return false; } bool does_auto_throttle() const override { return true; } @@ -593,8 +580,6 @@ public: void run() override; - void init() override; - protected: bool _enter() override;