summaryrefslogtreecommitdiff
path: root/compiler/parser/HaddockUtils.hs
diff options
context:
space:
mode:
authorIan Lynagh <igloo@earth.li>2008-12-29 19:14:30 +0000
committerIan Lynagh <igloo@earth.li>2008-12-29 19:14:30 +0000
commit91c489b865e64bcdc48e024f675fe2bb1412889f (patch)
treedc1a927e88b32b19b168e7d556f77a456d19eef8 /compiler/parser/HaddockUtils.hs
parent9ffadf219cbc4f8ec57264786df936a3cee88aec (diff)
downloadhaskell-91c489b865e64bcdc48e024f675fe2bb1412889f.tar.gz
Remove dead code from HaddockUtils
Diffstat (limited to 'compiler/parser/HaddockUtils.hs')
-rw-r--r--compiler/parser/HaddockUtils.hs12
1 files changed, 0 insertions, 12 deletions
diff --git a/compiler/parser/HaddockUtils.hs b/compiler/parser/HaddockUtils.hs
index abc31e1a9d..0275e79900 100644
--- a/compiler/parser/HaddockUtils.hs
+++ b/compiler/parser/HaddockUtils.hs
@@ -146,18 +146,6 @@ parseKey key toParse0 =
in
(c:line,rest)
-
- -- indentation returns characters after last newline.
- indentation :: String -> String
- indentation s = fromMaybe s (indentation0 s)
- where
- indentation0 :: String -> Maybe String
- indentation0 [] = Nothing
- indentation0 (c:cs) =
- case indentation0 cs of
- Nothing -> if c == '\n' then Just cs else Nothing
- in0 -> in0
-
-- comparison is case-insensitive.
extractPrefix :: String -> String -> Maybe String
extractPrefix [] s = Just s