diff options
author | Neil Mitchell <http://www.cs.york.ac.uk/~ndm/> | 2007-01-11 18:17:46 +0000 |
---|---|---|
committer | Neil Mitchell <http://www.cs.york.ac.uk/~ndm/> | 2007-01-11 18:17:46 +0000 |
commit | bf9d816e9df61c11670e2e09b3ddb41475a3bc1a (patch) | |
tree | 8e5a4e8051bc65c326bb2d08fd74a2a83e8d5080 /src | |
parent | 12b1c76fefc78b2a0fa54138a550c73802b1847d (diff) |
Delete dead code, now there is only one index page
Diffstat (limited to 'src')
-rw-r--r-- | src/Haddock/Backends/Html.hs | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/Haddock/Backends/Html.hs b/src/Haddock/Backends/Html.hs index d46e0df4..034c4db2 100644 --- a/src/Haddock/Backends/Html.hs +++ b/src/Haddock/Backends/Html.hs @@ -440,32 +440,6 @@ ppHtmlIndex odir doctitle maybe_package maybe_html_help_format index_html = td << table ! [identifier "indexlist", cellpadding 0, cellspacing 5] << aboves (map indexElt index) - - indexInitialLetterLinks = - td << table ! [cellpadding 0, cellspacing 5] << - besides [ td << anchor ! [href (subIndexHtmlFile c)] << - toHtml [c] - | c <- initialChars - , any ((==c) . toUpper . head . fst) index ] - - do_sub_index this_ix c - = unless (null index_part) $ - writeFile (pathJoin [odir, subIndexHtmlFile c]) (renderHtml html) - where - html = header (documentCharacterEncoding +++ - thetitle (toHtml (doctitle ++ " (Index)")) +++ - styleSheet) +++ - body << vanillaTable << ( - simpleHeader doctitle maybe_contents_url Nothing - maybe_source_url maybe_wiki_url </> - indexInitialLetterLinks </> - tda [theclass "section1"] << - toHtml ("Index (" ++ c:")") </> - td << table ! [cellpadding 0, cellspacing 5] << - aboves (map indexElt index_part) - ) - - index_part = [(n,stuff) | (n,stuff) <- this_ix, toUpper (head n) == c] index :: [(String, Map GHC.Name [(Module,Bool)])] index = sortBy cmp (Map.toAscList full_index) |