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

@@ -250,7 +250,6 @@ phoneme_add_feature(PHONEME_TAB *phoneme,
// one for the current voice
extern int 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 {
char name[N_PHONEME_TAB_NAME];

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

@@ -46,7 +46,6 @@ const int version_phdata = 0x014801;
// copy the current phoneme table into here
int 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;
char *phondata_ptr = NULL;
@@ -337,9 +336,6 @@ static void SetUpPhonemeTable(int number, bool recursing)
int ph_code;
PHONEME_TAB *phtab;

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

if ((includes = phoneme_tab_list[number].includes) > 0) {
// recursively include base phoneme tables
SetUpPhonemeTable(includes-1, true);
@@ -352,9 +348,6 @@ static void SetUpPhonemeTable(int number, bool recursing)
phoneme_tab[ph_code] = &phtab[ix];
if (ph_code > n_phoneme_tab)
n_phoneme_tab = ph_code;

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


Loading…
Cancel
Save