1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +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 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);
}
}
/**