eqExprX - dead code?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

eqExprX - dead code?

Joachim Breitner-2

I came across some seemingly dead code, but I?d like to ask here before
I clean it up. (Generally, cleaning up dead code is desirable, right?)

The function eqExprX takes a parameter id_unfolding_fun which allows it
to look through variable unfoldings. But the only use of this fuction is
in eqExpr, which passes "const noUnfolding". Therefore, the two fancy
cases in lines 1351-1362 never apply:

Some archeology: In Dec 2010, SPJ removed a use of eqExprX from the CSE
module, which made use of that parameter (aae915d6).

Thinking about it, it is probably safe to clean up the code. And if not,
I?m not going to be offended by a "git revert", but just doing the
change instead of waiting for permission seems to be more efficient to


Joachim ?nomeata? Breitner
  mail at joachim-breitner.de ? http://www.joachim-breitner.de/
  Jabber: nomeata at joachim-breitner.de  ? GPG-Key: 0x4743206C
  Debian Developer: nomeata at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://www.haskell.org/pipermail/ghc-devs/attachments/20131217/8d0119c3/attachment.sig>