From 389ce6b7388a6f38edf25c207a73c1fc20284d6e Mon Sep 17 00:00:00 2001 From: Juho Hiltunen Date: Fri, 28 May 2021 20:39:54 +0300 Subject: [PATCH] code cleanup: remove unused FLAG_HYPHENATED and related code. The flag is never set anywhere so the if-clause will always evaluate to false. --- src/libespeak-ng/dictionary.c | 4 ---- src/libespeak-ng/translate.h | 1 - 2 files changed, 5 deletions(-) diff --git a/src/libespeak-ng/dictionary.c b/src/libespeak-ng/dictionary.c index 5d4d66f4..cebfccfc 100644 --- a/src/libespeak-ng/dictionary.c +++ b/src/libespeak-ng/dictionary.c @@ -2706,10 +2706,6 @@ static const char *LookupDict2(Translator *tr, const char *word, const char *wor } } - if (dictionary_flags2 & FLAG_HYPHENATED) { - if (!(wflags & FLAG_HYPHEN_AFTER)) - continue; - } if (dictionary_flags2 & FLAG_CAPITAL) { if (!(wflags & FLAG_FIRST_UPPER)) continue; diff --git a/src/libespeak-ng/translate.h b/src/libespeak-ng/translate.h index 75bc1d39..8118b059 100644 --- a/src/libespeak-ng/translate.h +++ b/src/libespeak-ng/translate.h @@ -92,7 +92,6 @@ extern "C" #define FLAG_CAPITAL 0x200 // pronunciation if initial letter is upper case #define FLAG_ALLCAPS 0x400 // only if the word is all capitals #define FLAG_ACCENT 0x800 // character name is base-character name + accent name -#define FLAG_HYPHENATED 0x1000 // multiple-words, but needs hyphen between parts 1 and 2 #define FLAG_SENTENCE 0x2000 // only if the clause is a sentence #define FLAG_ONLY 0x4000 #define FLAG_ONLY_S 0x8000