From 8486c5d678fb5054ad0e3b2b519e7b55e5fb0f8b Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Sat, 19 Dec 2015 13:38:27 +0000 Subject: [PATCH] The post_tonic variable is set but not used, so remove it. --- src/libespeak-ng/dictionary.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/libespeak-ng/dictionary.c b/src/libespeak-ng/dictionary.c index f90ce0c6..9fec09ce 100644 --- a/src/libespeak-ng/dictionary.c +++ b/src/libespeak-ng/dictionary.c @@ -1187,7 +1187,6 @@ void SetWordStress(Translator *tr, char *output, unsigned int *dictionary_flags, int final_ph; int final_ph2; int mnem; - int post_tonic; // currently not used int opt_length; int done; int stressflags; @@ -1699,7 +1698,6 @@ void SetWordStress(Translator *tr, char *output, unsigned int *dictionary_flags, } p = phonetic; - post_tonic = 0; while(((phcode = *p++) != 0) && (output < max_output)) { if((ph = phoneme_tab[phcode]) == NULL) @@ -1716,9 +1714,6 @@ void SetWordStress(Translator *tr, char *output, unsigned int *dictionary_flags, v_stress = vowel_stress[v]; tr->prev_last_stress = v_stress; - if(vowel_stress[v-1] >= max_stress) - post_tonic = 1; - if(v_stress <= 1) { if((v > 1) && (max_stress >= 2) && (stressflags & S_FINAL_DIM) && (v == (vowel_count-1)))