Browse Source

code cleanup: remove phoneme_tab_flags

It is memset and set once, but never checked or used for anything.
master
Juho Hiltunen 5 years ago
parent
commit
65847bd251
2 changed files with 0 additions and 8 deletions
  1. 0
    1
      src/libespeak-ng/phoneme.h
  2. 0
    7
      src/libespeak-ng/synthdata.c

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

// one for the current voice // one for the current voice
extern int n_phoneme_tab; extern int n_phoneme_tab;
extern PHONEME_TAB *phoneme_tab[N_PHONEME_TAB]; extern PHONEME_TAB *phoneme_tab[N_PHONEME_TAB];
extern unsigned char phoneme_tab_flags[N_PHONEME_TAB]; // bit 0: not inherited


typedef struct { typedef struct {
char name[N_PHONEME_TAB_NAME]; char name[N_PHONEME_TAB_NAME];

+ 0
- 7
src/libespeak-ng/synthdata.c View File

// copy the current phoneme table into here // copy the current phoneme table into here
int n_phoneme_tab; int n_phoneme_tab;
PHONEME_TAB *phoneme_tab[N_PHONEME_TAB]; PHONEME_TAB *phoneme_tab[N_PHONEME_TAB];
unsigned char phoneme_tab_flags[N_PHONEME_TAB]; // bit 0: not inherited


unsigned short *phoneme_index = NULL; unsigned short *phoneme_index = NULL;
char *phondata_ptr = NULL; char *phondata_ptr = NULL;
int ph_code; int ph_code;
PHONEME_TAB *phtab; PHONEME_TAB *phtab;


if (recursing == false)
memset(phoneme_tab_flags, 0, sizeof(phoneme_tab_flags));

if ((includes = phoneme_tab_list[number].includes) > 0) { if ((includes = phoneme_tab_list[number].includes) > 0) {
// recursively include base phoneme tables // recursively include base phoneme tables
SetUpPhonemeTable(includes-1, true); SetUpPhonemeTable(includes-1, true);
phoneme_tab[ph_code] = &phtab[ix]; phoneme_tab[ph_code] = &phtab[ix];
if (ph_code > n_phoneme_tab) if (ph_code > n_phoneme_tab)
n_phoneme_tab = ph_code; n_phoneme_tab = ph_code;

if (recursing == 0)
phoneme_tab_flags[ph_code] |= 1; // not inherited
} }
} }



Loading…
Cancel
Save