mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-05 14:47:26 +00:00
hash_counts is never used, so remove it.
Reported by Reef Turner <reef@nvaccess.org>
This commit is contained in:
@@ -52,7 +52,6 @@ static int text_mode = 0;
|
||||
static int debug_flag = 0;
|
||||
static int error_need_dictionary = 0;
|
||||
|
||||
static int hash_counts[N_HASH_DICT];
|
||||
static char *hash_chains[N_HASH_DICT];
|
||||
static char letterGroupsDefined[N_LETTER_GROUPS];
|
||||
|
||||
@@ -669,7 +668,6 @@ static void compile_dictlist_start(void)
|
||||
p = p2;
|
||||
}
|
||||
hash_chains[ix] = NULL;
|
||||
hash_counts[ix] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -682,7 +680,6 @@ static void compile_dictlist_end(FILE *f_out)
|
||||
|
||||
for (hash = 0; hash < N_HASH_DICT; hash++) {
|
||||
p = hash_chains[hash];
|
||||
hash_counts[hash] = (int)ftell(f_out);
|
||||
|
||||
while (p != NULL) {
|
||||
length = *(p+sizeof(char *));
|
||||
@@ -725,8 +722,6 @@ static int compile_dictlist_file(const char *path, const char *filename)
|
||||
length = compile_line(buf, dict_line, sizeof(dict_line), &hash);
|
||||
if (length == 0) continue; // blank line
|
||||
|
||||
hash_counts[hash]++;
|
||||
|
||||
p = (char *)malloc(length+sizeof(char *));
|
||||
if (p == NULL) {
|
||||
if (f_log != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user