mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-05 06:45:39 +00:00
cleanup: fix code smell knownConditionTrueFalse
Inner 'p->stresslevel>=4' will always be true. Thus checking for count_stressed is redundant.
This commit is contained in:
@@ -790,13 +790,8 @@ static void CalcPitches_Tone(Translator *tr)
|
||||
p = &phoneme_list[0];
|
||||
for (ix = 0; ix < n_phoneme_list; ix++, p++) {
|
||||
if ((p->type == phVOWEL) && (p->stresslevel >= 4)) {
|
||||
if (count_stressed == 0)
|
||||
final_stressed = ix;
|
||||
|
||||
if (p->stresslevel >= 4) {
|
||||
final_stressed = ix;
|
||||
count_stressed++;
|
||||
}
|
||||
final_stressed = ix;
|
||||
count_stressed++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user