Browse Source

code cleanup: remove unused FLAG_HYPHENATED and related code.

The flag is never set anywhere so the if-clause will always evaluate to false.
master
Juho Hiltunen 4 years ago
parent
commit
389ce6b738
2 changed files with 0 additions and 5 deletions
  1. 0
    4
      src/libespeak-ng/dictionary.c
  2. 0
    1
      src/libespeak-ng/translate.h

+ 0
- 4
src/libespeak-ng/dictionary.c View File

} }
} }


if (dictionary_flags2 & FLAG_HYPHENATED) {
if (!(wflags & FLAG_HYPHEN_AFTER))
continue;
}
if (dictionary_flags2 & FLAG_CAPITAL) { if (dictionary_flags2 & FLAG_CAPITAL) {
if (!(wflags & FLAG_FIRST_UPPER)) if (!(wflags & FLAG_FIRST_UPPER))
continue; continue;

+ 0
- 1
src/libespeak-ng/translate.h View File

#define FLAG_CAPITAL 0x200 // pronunciation if initial letter is upper case #define FLAG_CAPITAL 0x200 // pronunciation if initial letter is upper case
#define FLAG_ALLCAPS 0x400 // only if the word is all capitals #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_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_SENTENCE 0x2000 // only if the clause is a sentence
#define FLAG_ONLY 0x4000 #define FLAG_ONLY 0x4000
#define FLAG_ONLY_S 0x8000 #define FLAG_ONLY_S 0x8000

Loading…
Cancel
Save