From 74ebdb4126fd6ab6fd0851ea8b9e3aabcf512101 Mon Sep 17 00:00:00 2001 From: Juho Hiltunen Date: Fri, 12 Mar 2021 22:16:47 +0200 Subject: [PATCH] code cleanup: remove unused speed.loud_consonants It is set but never used. --- src/libespeak-ng/setlengths.c | 8 -------- src/libespeak-ng/synthesize.h | 1 - 2 files changed, 9 deletions(-) diff --git a/src/libespeak-ng/setlengths.c b/src/libespeak-ng/setlengths.c index 2e6b4fb7..6f68ce96 100644 --- a/src/libespeak-ng/setlengths.c +++ b/src/libespeak-ng/setlengths.c @@ -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; diff --git a/src/libespeak-ng/synthesize.h b/src/libespeak-ng/synthesize.h index 6dca6ff7..8edc96ac 100644 --- a/src/libespeak-ng/synthesize.h +++ b/src/libespeak-ng/synthesize.h @@ -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;