code cleanup: remove unused stress_amps_r

It is set but never used.
This commit is contained in:
Juho Hiltunen
2021-02-07 18:54:31 +02:00
parent b19e801733
commit 2c93961ebe
3 changed files with 0 additions and 3 deletions
-1
View File
@@ -277,7 +277,6 @@ static Translator *NewTranslator(void)
for (ix = 0; ix < 8; ix++) {
tr->stress_amps[ix] = stress_amps2[ix];
tr->stress_amps_r[ix] = stress_amps2[ix] - 1;
tr->stress_lengths[ix] = stress_lengths2[ix];
}
memset(&(tr->langopts), 0, sizeof(tr->langopts));
-1
View File
@@ -555,7 +555,6 @@ typedef struct {
int phoneme_tab_ix;
unsigned char stress_amps[8];
unsigned char stress_amps_r[8];
short stress_lengths[8];
int dict_condition; // conditional apply some pronunciation rules and dict.lookups
int dict_min_size;
-1
View File
@@ -927,7 +927,6 @@ voice_t *LoadVoice(const char *vname, int control)
translator->stress_lengths[ix] += stress_add[ix];
for (ix = 0; ix < stress_amps_set; ix++) {
translator->stress_amps[ix] = stress_amps[ix];
translator->stress_amps_r[ix] = stress_amps[ix] -1;
}
return voice;