Browse Source

hash_counts is never used, so remove it.

Reported by Reef Turner <[email protected]>
master
Reece H. Dunn 8 years ago
parent
commit
e7ac4b819d
1 changed files with 0 additions and 5 deletions
  1. 0
    5
      src/libespeak-ng/compiledict.c

+ 0
- 5
src/libespeak-ng/compiledict.c View File

static int debug_flag = 0; static int debug_flag = 0;
static int error_need_dictionary = 0; static int error_need_dictionary = 0;


static int hash_counts[N_HASH_DICT];
static char *hash_chains[N_HASH_DICT]; static char *hash_chains[N_HASH_DICT];
static char letterGroupsDefined[N_LETTER_GROUPS]; static char letterGroupsDefined[N_LETTER_GROUPS];


p = p2; p = p2;
} }
hash_chains[ix] = NULL; hash_chains[ix] = NULL;
hash_counts[ix] = 0;
} }
} }




for (hash = 0; hash < N_HASH_DICT; hash++) { for (hash = 0; hash < N_HASH_DICT; hash++) {
p = hash_chains[hash]; p = hash_chains[hash];
hash_counts[hash] = (int)ftell(f_out);


while (p != NULL) { while (p != NULL) {
length = *(p+sizeof(char *)); length = *(p+sizeof(char *));
length = compile_line(buf, dict_line, sizeof(dict_line), &hash); length = compile_line(buf, dict_line, sizeof(dict_line), &hash);
if (length == 0) continue; // blank line if (length == 0) continue; // blank line


hash_counts[hash]++;

p = (char *)malloc(length+sizeof(char *)); p = (char *)malloc(length+sizeof(char *));
if (p == NULL) { if (p == NULL) {
if (f_log != NULL) { if (f_log != NULL) {

Loading…
Cancel
Save