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



for (ix = 0; ix < 8; ix++) { for (ix = 0; ix < 8; ix++) {
tr->stress_amps[ix] = stress_amps2[ix]; tr->stress_amps[ix] = stress_amps2[ix];
tr->stress_amps_r[ix] = stress_amps2[ix] - 1;
tr->stress_lengths[ix] = stress_lengths2[ix]; tr->stress_lengths[ix] = stress_lengths2[ix];
} }
memset(&(tr->langopts), 0, sizeof(tr->langopts)); memset(&(tr->langopts), 0, sizeof(tr->langopts));

+ 0
- 1
src/libespeak-ng/translate.h View File

int phoneme_tab_ix; int phoneme_tab_ix;


unsigned char stress_amps[8]; unsigned char stress_amps[8];
unsigned char stress_amps_r[8];
short stress_lengths[8]; short stress_lengths[8];
int dict_condition; // conditional apply some pronunciation rules and dict.lookups int dict_condition; // conditional apply some pronunciation rules and dict.lookups
int dict_min_size; int dict_min_size;

+ 0
- 1
src/libespeak-ng/voices.c View File

translator->stress_lengths[ix] += stress_add[ix]; translator->stress_lengths[ix] += stress_add[ix];
for (ix = 0; ix < stress_amps_set; ix++) { for (ix = 0; ix < stress_amps_set; ix++) {
translator->stress_amps[ix] = stress_amps[ix]; translator->stress_amps[ix] = stress_amps[ix];
translator->stress_amps_r[ix] = stress_amps[ix] -1;
} }


return voice; return voice;

Loading…
Cancel
Save