aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/Logging.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text/Pandoc/Logging.hs')
-rw-r--r--src/Text/Pandoc/Logging.hs10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/Text/Pandoc/Logging.hs b/src/Text/Pandoc/Logging.hs
index f6a2a6e1a..5c9330b7b 100644
--- a/src/Text/Pandoc/Logging.hs
+++ b/src/Text/Pandoc/Logging.hs
@@ -61,7 +61,6 @@ instance FromYAML Verbosity where
data LogMessage =
SkippedContent Text.Text SourcePos
| IgnoredElement Text.Text
- | CouldNotParseYamlMetadata Text.Text SourcePos
| DuplicateLinkReference Text.Text SourcePos
| DuplicateNoteReference Text.Text SourcePos
| NoteDefinedButNotUsed Text.Text SourcePos
@@ -113,11 +112,6 @@ instance ToJSON LogMessage where
"column" .= sourceColumn pos]
IgnoredElement s ->
["contents" .= s]
- CouldNotParseYamlMetadata s pos ->
- ["message" .= s,
- "source" .= sourceName pos,
- "line" .= toJSON (sourceLine pos),
- "column" .= toJSON (sourceColumn pos)]
DuplicateLinkReference s pos ->
["contents" .= s,
"source" .= sourceName pos,
@@ -251,9 +245,6 @@ showLogMessage msg =
"Skipped '" <> s <> "' at " <> showPos pos
IgnoredElement s ->
"Ignored element " <> s
- CouldNotParseYamlMetadata s pos ->
- "Could not parse YAML metadata at " <> showPos pos <>
- if Text.null s then "" else ": " <> s
DuplicateLinkReference s pos ->
"Duplicate link reference '" <> s <> "' at " <> showPos pos
DuplicateNoteReference s pos ->
@@ -348,7 +339,6 @@ messageVerbosity msg =
case msg of
SkippedContent{} -> INFO
IgnoredElement{} -> INFO
- CouldNotParseYamlMetadata{} -> WARNING
DuplicateLinkReference{} -> WARNING
DuplicateNoteReference{} -> WARNING
NoteDefinedButNotUsed{} -> WARNING