1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-10 18:24:11 +01:00

OP-1728 Remove unused code

This commit is contained in:
Laurent Lalanne 2015-02-18 00:51:42 +01:00
parent 745ada0781
commit 4b24707f82

View File

@ -232,7 +232,6 @@ void OutputChannelForm::setChannelRange()
{ {
int minValue = ui.actuatorMin->value(); int minValue = ui.actuatorMin->value();
int maxValue = ui.actuatorMax->value(); int maxValue = ui.actuatorMax->value();
int neutralValue = ui.actuatorValue->value();
int oldMini = ui.actuatorNeutral->minimum(); int oldMini = ui.actuatorNeutral->minimum();
int oldMaxi = ui.actuatorNeutral->maximum(); int oldMaxi = ui.actuatorNeutral->maximum();
@ -312,18 +311,6 @@ void OutputChannelForm::reverseChannel(bool state)
ui.actuatorNeutral->setInvertedAppearance(state); ui.actuatorNeutral->setInvertedAppearance(state);
return; 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);
}
} }
/** /**