summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2022-09-27 21:21:06 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2022-09-27 21:21:06 -0700
commit1e2e0290486c0de2b9ef93917489386521763054 (patch)
tree6a49a0be7a788a0b6b4e873cfe52e95f5673bd56 /src
parentcc2078530c84527f968eef5b247787a4da949a61 (diff)
T.P.Citeproc.MetaValue: remove unused function metaValueToPath
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Citeproc/MetaValue.hs4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/Text/Pandoc/Citeproc/MetaValue.hs b/src/Text/Pandoc/Citeproc/MetaValue.hs
index b4de79426..ce7b1285c 100644
--- a/src/Text/Pandoc/Citeproc/MetaValue.hs
+++ b/src/Text/Pandoc/Citeproc/MetaValue.hs
@@ -3,7 +3,6 @@ module Text.Pandoc.Citeproc.MetaValue
( referenceToMetaValue
, metaValueToReference
, metaValueToText
- , metaValueToPath
)
where
@@ -28,9 +27,6 @@ metaValueToText (MetaBlocks bls) = Just $ stringify bls
metaValueToText (MetaList xs) = T.unwords <$> mapM metaValueToText xs
metaValueToText _ = Nothing
-metaValueToPath :: MetaValue -> Maybe FilePath
-metaValueToPath = fmap T.unpack . metaValueToText
-
metaValueToBool :: MetaValue -> Maybe Bool
metaValueToBool (MetaBool b) = Just b
metaValueToBool (MetaString "true") = Just True