From ac643ea5add300e036afbcc0d48e28d94edad5a9 Mon Sep 17 00:00:00 2001 From: Juho Hiltunen Date: Mon, 26 Jul 2021 17:43:15 +0300 Subject: [PATCH] code cleanup: remove unnecessary call to SelectPhonemeTable() It is called multiple times in LoadVoice(). --- src/libespeak-ng/voices.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/libespeak-ng/voices.c b/src/libespeak-ng/voices.c index 324bfecd..da61cb88 100644 --- a/src/libespeak-ng/voices.c +++ b/src/libespeak-ng/voices.c @@ -571,7 +571,6 @@ voice_t *LoadVoice(const char *vname, int control) strcpy(translator_name, language_type); strcpy(new_dictionary, language_type); - strcpy(phonemes_name, language_type); if (!tone_only) { voice = &voicedata; @@ -591,9 +590,6 @@ voice_t *LoadVoice(const char *vname, int control) } VoiceReset(tone_only); - if (!tone_only) - SelectPhonemeTableName(phonemes_name); // set up phoneme_tab - while ((f_voice != NULL) && (fgets_strip(buf, sizeof(buf), f_voice) != NULL)) { // isolate the attribute name for (p = buf; (*p != 0) && !isspace(*p); p++) ;