From f269acf22c35e00afe55cf636e496a434049d9a4 Mon Sep 17 00:00:00 2001 From: Juho Hiltunen Date: Tue, 29 Jun 2021 15:41:07 +0300 Subject: [PATCH] code cleanup: remove unneeded switch case for stress_rule = 10. There are nolanguages that use stress_rule = 10. --- src/libespeak-ng/dictionary.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/libespeak-ng/dictionary.c b/src/libespeak-ng/dictionary.c index 501eef4a..0897e841 100644 --- a/src/libespeak-ng/dictionary.c +++ b/src/libespeak-ng/dictionary.c @@ -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