code cleanup: remove unused int vowel_transition[4]

There's two variables with the same name:
1) in struct PHONEME_DATA, used by *phdata, *phdata_next and *phdata_prev
2) an unnecessary one that's only being memset() twice but never used
   for anything
This commit is contained in:
Juho Hiltunen
2020-07-21 16:14:25 +03:00
parent a4041952c5
commit 5d03047c19
3 changed files with 0 additions and 4 deletions
-1
View File
@@ -60,7 +60,6 @@ int wavefile_ix; // a wavefile to play along with the synthesis
int wavefile_amp;
int seq_len_adjust;
int vowel_transition[4];
static espeak_ng_STATUS ReadPhFile(void **ptr, const char *fname, int *size, espeak_ng_ERROR_CONTEXT *context)
{
-2
View File
@@ -126,7 +126,6 @@ static void EndPitch(int voice_break)
syllable_end = wcmdq_tail;
SmoothSpect();
syllable_centre = -1;
memset(vowel_transition, 0, sizeof(vowel_transition));
}
}
@@ -1189,7 +1188,6 @@ int Generate(PHONEME_LIST *phoneme_list, int *n_ph, bool resume)
syllable_end = wcmdq_tail;
syllable_centre = -1;
last_pitch_cmd = -1;
memset(vowel_transition, 0, sizeof(vowel_transition));
memset(&worddata, 0, sizeof(worddata));
DoPause(0, 0); // isolate from the previous clause
}
-1
View File
@@ -450,7 +450,6 @@ extern int samplerate_native;
extern int wavefile_ix;
extern int wavefile_amp;
extern int vowel_transition[4];
#define N_ECHO_BUF 5500 // max of 250mS at 22050 Hz
extern int echo_head;