Skip to content

Commit

Permalink
code cleanup: remove unneeded switch case for stress_rule = 10.
Browse files Browse the repository at this point in the history
There are nolanguages that use stress_rule = 10.
  • Loading branch information
jaacoppi committed Jun 29, 2021
1 parent c6ef706 commit f269acf
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/libespeak-ng/dictionary.c
Original file line number Diff line number Diff line change
Expand Up @@ -1132,15 +1132,7 @@ void SetWordStress(Translator *tr, char *output, unsigned int *dictionary_flags,
max_stress = STRESS_IS_PRIMARY;
}
break;
case 10: // penultimate, but final if only 1 or 2 syllables
if (stressed_syllable == 0) {
if (vowel_count < 4) {
vowel_stress[vowel_count - 1] = STRESS_IS_PRIMARY;
max_stress = STRESS_IS_PRIMARY;
break;
}
}
// fallthrough:

case STRESSPOSN_2R:
// a language with stress on penultimate vowel

Expand Down

0 comments on commit f269acf

Please sign in to comment.