summaryrefslogtreecommitdiff
path: root/compiler/utils/Util.lhs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/utils/Util.lhs')
-rw-r--r--compiler/utils/Util.lhs21
1 files changed, 0 insertions, 21 deletions
diff --git a/compiler/utils/Util.lhs b/compiler/utils/Util.lhs
index aa5f6f9c95..df293f091b 100644
--- a/compiler/utils/Util.lhs
+++ b/compiler/utils/Util.lhs
@@ -89,7 +89,6 @@ module Util (
Suffix,
splitLongestPrefix,
escapeSpaces,
- parseSearchPath,
Direction(..), reslash,
makeRelativeTo,
@@ -1005,26 +1004,6 @@ type Suffix = String
-- * Search path
--------------------------------------------------------------
--- | The function splits the given string to substrings
--- using the 'searchPathSeparator'.
-parseSearchPath :: String -> [FilePath]
-parseSearchPath path = split path
- where
- split :: String -> [String]
- split s =
- case rest' of
- [] -> [chunk]
- _:rest -> chunk : split rest
- where
- chunk =
- case chunk' of
-#ifdef mingw32_HOST_OS
- ('\"':xs@(_:_)) | last xs == '\"' -> init xs
-#endif
- _ -> chunk'
-
- (chunk', rest') = break isSearchPathSeparator s
-
data Direction = Forwards | Backwards
reslash :: Direction -> FilePath -> FilePath