code cleanup: remove unused FLAG_HYPHENATED and related code.

The flag is never set anywhere so the if-clause will always evaluate to false.
This commit is contained in:
Juho Hiltunen
2021-05-28 20:52:49 +03:00
parent 1df852a1ae
commit 389ce6b738
2 changed files with 0 additions and 5 deletions
-4
View File
@@ -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;
-1
View File
@@ -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