From 4b24707f82feb57e17a9778475db89c13ed1a52e Mon Sep 17 00:00:00 2001 From: Laurent Lalanne Date: Wed, 18 Feb 2015 00:51:42 +0100 Subject: [PATCH] OP-1728 Remove unused code --- .../openpilotgcs/src/plugins/config/outputchannelform.cpp | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/ground/openpilotgcs/src/plugins/config/outputchannelform.cpp b/ground/openpilotgcs/src/plugins/config/outputchannelform.cpp index 18103f7ca..b604d9027 100644 --- a/ground/openpilotgcs/src/plugins/config/outputchannelform.cpp +++ b/ground/openpilotgcs/src/plugins/config/outputchannelform.cpp @@ -232,7 +232,6 @@ void OutputChannelForm::setChannelRange() { int minValue = ui.actuatorMin->value(); int maxValue = ui.actuatorMax->value(); - int neutralValue = ui.actuatorValue->value(); int oldMini = ui.actuatorNeutral->minimum(); int oldMaxi = ui.actuatorNeutral->maximum(); @@ -312,18 +311,6 @@ void OutputChannelForm::reverseChannel(bool state) ui.actuatorNeutral->setInvertedAppearance(state); return; } - - // Also update the channel value - // This is a trick to force the slider to update its value and - // emit the right signal itself, because our sendChannelTest(int) method - // relies on the object sender's identity. - if (ui.actuatorNeutral->value() < ui.actuatorNeutral->maximum()) { - ui.actuatorNeutral->setValue(ui.actuatorNeutral->value() + 1); - ui.actuatorNeutral->setValue(ui.actuatorNeutral->value() - 1); - } else { - ui.actuatorNeutral->setValue(ui.actuatorNeutral->value() - 1); - ui.actuatorNeutral->setValue(ui.actuatorNeutral->value() + 1); - } } /** -- 2.11.4.GIT