From dd2798d099711b1f5f68fa9b20886b4d8467030c Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Thu, 20 Dec 2018 09:23:02 +0100 Subject: [PATCH] AP_Arming: remove unused parameter and variable --- libraries/AP_Arming/AP_Arming.cpp | 2 +- libraries/AP_Arming/AP_Arming.h | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index 61b9ca5063..6921584f46 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -745,7 +745,7 @@ AP_Arming::ArmingRequired AP_Arming::arming_required() // Copter and sub share the same RC input limits // Copter checks that min and max have been configured by default, Sub does not -bool AP_Arming::rc_checks_copter_sub(const bool display_failure, const RC_Channel *channels[4], const bool check_min_max) const +bool AP_Arming::rc_checks_copter_sub(const bool display_failure, const RC_Channel *channels[4]) const { // set rc-checks to success if RC checks are disabled if ((checks_to_perform != ARMING_CHECK_ALL) && !(checks_to_perform & ARMING_CHECK_RC)) { diff --git a/libraries/AP_Arming/AP_Arming.h b/libraries/AP_Arming/AP_Arming.h index 26a031b640..243cc07491 100644 --- a/libraries/AP_Arming/AP_Arming.h +++ b/libraries/AP_Arming/AP_Arming.h @@ -87,7 +87,6 @@ protected: // internal members bool armed:1; - bool logging_available:1; uint32_t last_accel_pass_ms[INS_MAX_INSTANCES]; uint32_t last_gyro_pass_ms[INS_MAX_INSTANCES]; @@ -118,7 +117,7 @@ protected: virtual bool system_checks(bool report); bool servo_checks(bool report) const; - bool rc_checks_copter_sub(bool display_failure, const RC_Channel *channels[4], const bool check_min_max = true) const; + bool rc_checks_copter_sub(bool display_failure, const RC_Channel *channels[4]) const; // returns true if a particular check is enabled bool check_enabled(const enum AP_Arming::ArmingChecks check) const;