Browse Source

code cleanup: remove unused stress_amps_r

It is set but never used.
master
Juho Hiltunen 4 years ago
parent
commit
2c93961ebe
3 changed files with 0 additions and 3 deletions
  1. 0
    1
      src/libespeak-ng/tr_languages.c
  2. 0
    1
      src/libespeak-ng/translate.h
  3. 0
    1
      src/libespeak-ng/voices.c

+ 0
- 1
src/libespeak-ng/tr_languages.c 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));

+ 0
- 1
src/libespeak-ng/translate.h 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;

+ 0
- 1
src/libespeak-ng/voices.c 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;

Loading…
Cancel
Save