diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2021-09-23 09:19:05 +1000 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2021-09-23 09:19:05 +1000 |
commit | d43f0a9c941ab087a4a862217fef58d27f52341b (patch) | |
tree | e2a7a215be2c2cd8b0477ed6a01bd34e649882ce /src/libs | |
parent | c68a45bde14e493edb1120b0e13e379febf47ee5 (diff) | |
download | groff-git-d43f0a9c941ab087a4a862217fef58d27f52341b.tar.gz |
[libgroff]: Drop redundant diagnostic.
* src/libs/libgroff/font.cpp (font::load): Drop redundant diagnostic; a
missing `charset` directive is already checked for later, circa line
998.
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/libgroff/font.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/libs/libgroff/font.cpp b/src/libs/libgroff/font.cpp index e3a398182..01c114421 100644 --- a/src/libs/libgroff/font.cpp +++ b/src/libs/libgroff/font.cpp @@ -848,13 +848,7 @@ bool font::load(bool load_header_only) break; } bool had_charset = false; - if (0 == p) { - if (!is_unicode) { - t.error("'charset' directive is missing"); - return false; - } - } - else { + { char *directive = p; t.recognize_comments = false; while (directive) { |