RnEnv cleanup
authorMatthew Pickering <matthewtpickering@gmail.com>
Wed, 12 Apr 2017 18:06:15 +0000 (14:06 -0400)
committerBen Gamari <ben@smart-cactus.org>
Wed, 12 Apr 2017 18:53:06 +0000 (14:53 -0400)
commitbb3712bf772fecb965f56a356ccf61437d324dcf
tree1aa2932c40da44994fb56376b0da6c3c3d75117a
parent2d96edd01d3a31ad719a5f12d226a049b7b2dbae
RnEnv cleanup

unless (not ..) -> when

Remove unused getLookupOccRn

Remove lookupGreRn2

It was only called in one place in a very strange way. It is easier
to just use lookupGreRn which has nearly the same implementation and
then directly call `unboundName`.

Remove unused function mapFvRnCPS

Remove unused functions bindLocatedLocalsRn and bindLocatedLocalsFV

Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: rwbarton, thomie

Differential Revision: https://phabricator.haskell.org/D3435
compiler/rename/RnEnv.hs