code cleanup: remove unused speed.loud_consonants

It is set but never used.
This commit is contained in:
Juho Hiltunen
2021-03-12 22:16:47 +02:00
parent 4c3fe183dd
commit 74ebdb4126
2 changed files with 0 additions and 9 deletions
-8
View File
@@ -149,7 +149,6 @@ void SetSpeed(int control)
int wpm_value;
double sonic;
speed.loud_consonants = 0;
speed.min_sample_len = espeakRATE_MAXIMUM;
speed.lenmod_factor = 110; // controls the effect of FRFLAG_LEN_MOD reduce length change
speed.lenmod2_factor = 100;
@@ -195,9 +194,6 @@ void SetSpeed(int control)
if (wpm > espeakRATE_MAXIMUM)
wpm = espeakRATE_MAXIMUM;
if (wpm > 360)
speed.loud_consonants = (wpm - 360) / 8;
wpm2 = wpm;
if (wpm > 359) wpm2 = 359;
if (wpm < espeakRATE_MINIMUM) wpm2 = espeakRATE_MINIMUM;
@@ -281,7 +277,6 @@ void SetSpeed(int control)
int wpm;
int wpm2;
speed.loud_consonants = 0;
speed.min_sample_len = espeakRATE_MAXIMUM;
speed.lenmod_factor = 110; // controls the effect of FRFLAG_LEN_MOD reduce length change
speed.lenmod2_factor = 100;
@@ -295,9 +290,6 @@ void SetSpeed(int control)
if (wpm > espeakRATE_MAXIMUM)
wpm = espeakRATE_MAXIMUM;
if (wpm > 360)
speed.loud_consonants = (wpm - 360) / 8;
wpm2 = wpm;
if (wpm > 359) wpm2 = 359;
if (wpm < espeakRATE_MINIMUM) wpm2 = espeakRATE_MINIMUM;
-1
View File
@@ -350,7 +350,6 @@ typedef struct {
int lenmod_factor;
int lenmod2_factor;
int min_sample_len;
int loud_consonants;
int fast_settings[8];
} SPEED_FACTORS;