Skip to content
Snippets Groups Projects
Commit 9d5ffde5 authored by Alice Brenon's avatar Alice Brenon
Browse files

Remove useless and commented-out code

parent 619e9c17
No related branches found
No related tags found
No related merge requests found
...@@ -24,4 +24,3 @@ main = do ...@@ -24,4 +24,3 @@ main = do
command <- getCommand command <- getCommand
input <- Text.getContents input <- Text.getContents
runExceptT (annotator command input) >>= either (die . show) Text.putStr runExceptT (annotator command input) >>= either (die . show) Text.putStr
where
...@@ -47,7 +47,6 @@ recordLine p = (,) <$> currentLine <*> p ...@@ -47,7 +47,6 @@ recordLine p = (,) <$> currentLine <*> p
annotationContext :: Header -> TEIWAParser AnnotationContext annotationContext :: Header -> TEIWAParser AnnotationContext
annotationContext defaultFields = do annotationContext defaultFields = do
Config {formColumn, headerOverride} <- ask Config {formColumn, headerOverride} <- ask
--headerFields <- maybe defaultFields pure headerOverride
let headerFields = maybe defaultFields id headerOverride let headerFields = maybe defaultFields id headerOverride
column <- catchNothing ((Right <$> formColumn) <|> findForm headerFields) column <- catchNothing ((Right <$> formColumn) <|> findForm headerFields)
buildContext column headerFields buildContext column headerFields
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment