aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2019-03-02 15:12:33 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2019-03-02 15:12:33 -0800
commit4ef0e13c474de94419a938852c40ddc152a35376 (patch)
treeb8b48a6f8bc9cce85cdf41255ea9a8e40ca38483 /src/Text
parent4774cf507ec181d475212da9f0628b7f0d6623f3 (diff)
downloadpandoc-4ef0e13c474de94419a938852c40ddc152a35376.tar.gz
Shared: remove withTempDir.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Shared.hs17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/Text/Pandoc/Shared.hs b/src/Text/Pandoc/Shared.hs
index cf92a1fda..215fbfde1 100644
--- a/src/Text/Pandoc/Shared.hs
+++ b/src/Text/Pandoc/Shared.hs
@@ -87,8 +87,6 @@ module Text.Pandoc.Shared (
defaultBlocksSeparator,
-- * Safe read
safeRead,
- -- * Temp directory
- withTempDir,
-- * User data directory
defaultUserDataDirs,
-- * Version
@@ -119,7 +117,6 @@ import Paths_pandoc (version)
import System.Directory
import System.FilePath (isPathSeparator, splitDirectories)
import qualified System.FilePath.Posix as Posix
-import System.IO.Temp
import Text.HTML.TagSoup (RenderOptions (..), Tag (..), renderOptions,
renderTagsOptions)
import Text.Pandoc.Builder (Blocks, Inlines, ToMetaValue (..))
@@ -899,20 +896,6 @@ safeRead s = case reads s of
_ -> mzero
--
--- Temp directory
---
-
--- TODO remove in next major release; this is no longer
--- used in the code base.
-withTempDir :: String -> (FilePath -> IO a) -> IO a
-withTempDir =
-#ifdef _WINDOWS
- withTempDirectory "."
-#else
- withSystemTempDirectory
-#endif
-
---
-- User data directory
--