From 89768755906a8682d425f17f9ea81e65c5675096 Mon Sep 17 00:00:00 2001 From: Juho Hiltunen Date: Sun, 28 Aug 2022 20:56:34 +0300 Subject: [PATCH] code cleanup: remove dead code related to Kiryarwanda This is the only reference to the language. --- phsource/phonemes | 3 --- src/libespeak-ng/tr_languages.c | 10 ---------- 2 files changed, 13 deletions(-) diff --git a/phsource/phonemes b/phsource/phonemes index 95879f88..2876dc76 100644 --- a/phsource/phonemes +++ b/phsource/phonemes @@ -1867,9 +1867,6 @@ include ph_klingon phonemetable ro base2 include ph_romanian -phonemetable rw base2 -include ph_kinyarwanda - phonemetable tk base2 include ph_turkmen diff --git a/src/libespeak-ng/tr_languages.c b/src/libespeak-ng/tr_languages.c index 80f5e9d9..a6d1b8bb 100644 --- a/src/libespeak-ng/tr_languages.c +++ b/src/libespeak-ng/tr_languages.c @@ -1319,16 +1319,6 @@ Translator *SelectTranslator(const char *name) case L('r', 'u'): // Russian Translator_Russian(tr); break; - case L('r', 'w'): // Kiryarwanda - { - tr->langopts.stress_rule = STRESSPOSN_2R; - tr->langopts.stress_flags = S_FINAL_DIM_ONLY | S_FINAL_NO_2; - tr->langopts.length_mods0 = tr->langopts.length_mods; // don't lengthen vowels in the last syllable - tr->langopts.param[LOPT_UNPRONOUNCABLE] = 1; // disable check for unpronouncable words. Need to allow "bw'" prefix - tr->langopts.numbers = NUM_HUNDRED_AND | NUM_AND_UNITS | NUM_DFRACTION_2 | NUM_AND_HUNDRED; - tr->langopts.numbers2 = NUM2_SWAP_THOUSANDS; - } - break; case L('s', 'k'): // Slovak case L('c', 's'): // Czech {