Clean up Wself-assign - see also d91374d0db

This commit is contained in:
Robin Gareus 2021-03-17 21:13:44 +01:00
parent 8b18d7ab61
commit 01863886b5
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -339,14 +339,12 @@ ParameterDescriptor::to_interface (float val, bool rotary) const
}
break;
case PanAzimuthAutomation:
if (rotary) {
; // val = val;
} else {
if (!rotary) {
val = 1.0 - val;
}
break;
case PanElevationAutomation:
; // val = val;
// val = val;
break;
case PanWidthAutomation:
val = .5f + val * .5f;
@ -396,14 +394,12 @@ ParameterDescriptor::from_interface (float val, bool rotary) const
}
break;
case PanAzimuthAutomation:
if (rotary) {
val = val;
} else {
if (!rotary) {
val = 1.0 - val;
}
break;
case PanElevationAutomation:
val = val;
// val = val;
break;
case PanWidthAutomation:
val = 2.f * val - 1.f;