Skip to content
This repository was archived by the owner on Aug 3, 2024. It is now read-only.

Dead code-paths in Hi Haddock #910

Merged
merged 2 commits into from
Aug 20, 2018
Merged

Conversation

harpocrates
Copy link
Collaborator

Removing this code has no impact on the output (try accepting before and after the commit). Offhand, it doesn't seem to impact any of the docs for libraries bundled with GHC either. We should either:

  • add test cases exercising the code paths this PR removes (I can't think of any such cases)
  • add test cases which used to (before Hi Haddock) exercise these code paths and are now broken
  • merge this

Removing this code has no impact on the output.
@harpocrates harpocrates requested a review from sjakobi August 20, 2018 17:41
Copy link
Member

@sjakobi sjakobi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! :)

It's quite clear to me that this is dead code which can safely be removed.

Can you remove the DeclMap alias too?

I think we should also remove the Maps alias and let availExportItem take only those arguments that it actually needs. But this can be done in a separate PR.

@harpocrates
Copy link
Collaborator Author

Thanks for the quick review! :D

There is definitely some more global cleanup to do too, but I wanted to make sure this code was really supposed to be dead. I agree with getting rid of Maps in a separate PR.

@sjakobi sjakobi merged commit c798cf4 into haskell:wip/hi-haddock Aug 20, 2018
@harpocrates harpocrates deleted the dead-code branch August 20, 2018 18:11
harpocrates added a commit that referenced this pull request Oct 21, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants