LandingGear: remove unused enabled method

Also minor formatting fix
This commit is contained in:
Randy Mackay 2017-06-10 10:34:33 +09:00
parent 45147af455
commit e84b5c63be
2 changed files with 1 additions and 4 deletions

View File

@ -61,7 +61,7 @@ void AP_LandingGear::update()
// if there is a force deploy active, disable retraction, then reset force deploy to consume it
// gear will be deployed automatically because _retract_enabled is false.
// this will disable retract switch until it is cycled through deploy position
if ( _force_deploy){
if (_force_deploy){
enable(false);
force_deploy(false);
}

View File

@ -32,9 +32,6 @@ public:
AP_Param::setup_object_defaults(this, var_info);
}
/// enabled - returns true if landing gear retract is enabled
bool enabled() const { return _retract_enabled; }
/// deployed - returns true if the landing gear is deployed
bool deployed() const { return _deployed; }