remove unnecessary if statement
This commit is contained in:
parent
14f2b6e6ff
commit
63776e36b5
1 changed files with 9 additions and 12 deletions
|
@ -413,18 +413,15 @@ static void decide_hold_tap(struct active_hold_tap *hold_tap, enum decision_mome
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// If the hold-tap behavior is still undecided, attempt to decide it.
|
switch (hold_tap->config->flavor) {
|
||||||
if (hold_tap->status == STATUS_UNDECIDED) {
|
case FLAVOR_HOLD_PREFERRED:
|
||||||
switch (hold_tap->config->flavor) {
|
decide_hold_preferred(hold_tap, decision_moment);
|
||||||
case FLAVOR_HOLD_PREFERRED:
|
case FLAVOR_BALANCED:
|
||||||
decide_hold_preferred(hold_tap, decision_moment);
|
decide_balanced(hold_tap, decision_moment);
|
||||||
case FLAVOR_BALANCED:
|
case FLAVOR_TAP_PREFERRED:
|
||||||
decide_balanced(hold_tap, decision_moment);
|
decide_tap_preferred(hold_tap, decision_moment);
|
||||||
case FLAVOR_TAP_PREFERRED:
|
case FLAVOR_TAP_POSITIONALLY_PREFERRED:
|
||||||
decide_tap_preferred(hold_tap, decision_moment);
|
decide_tap_positionally_preferred(hold_tap, decision_moment, other_key_down_pos);
|
||||||
case FLAVOR_TAP_POSITIONALLY_PREFERRED:
|
|
||||||
decide_tap_positionally_preferred(hold_tap, decision_moment, other_key_down_pos);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hold_tap->status == STATUS_UNDECIDED) {
|
if (hold_tap->status == STATUS_UNDECIDED) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue