[Git][ghc/ghc][wip/osa1/lfinfo] Remove unused function idLFInfo

Ömer Sinan Ağacan gitlab at gitlab.haskell.org
Wed Mar 25 07:12:03 UTC 2020



Ömer Sinan Ağacan pushed to branch wip/osa1/lfinfo at Glasgow Haskell Compiler / GHC


Commits:
f51f3738 by Ömer Sinan Ağacan at 2020-03-25T10:11:54+03:00
Remove unused function idLFInfo

- - - - -


1 changed file:

- compiler/basicTypes/Id.hs


Changes:

=====================================
compiler/basicTypes/Id.hs
=====================================
@@ -92,7 +92,7 @@ module Id (
         idCallArity, idFunRepArity,
         idUnfolding, realIdUnfolding,
         idSpecialisation, idCoreRules, idHasRules,
-        idCafInfo, idLFInfo, idLFInfo_maybe,
+        idCafInfo, idLFInfo_maybe,
         idOneShotInfo, idStateHackOneShotInfo,
         idOccInfo,
         isNeverLevPolyId,
@@ -734,10 +734,6 @@ setIdCafInfo id caf_info = modifyIdInfo (`setCafInfo` caf_info) id
 
         ---------------------------------
         -- Lambda form info
-idLFInfo :: HasCallStack => Id -> LambdaFormInfo
-idLFInfo id = case lfInfo (idInfo id) of
-                Nothing -> pprPanic "idLFInfo" (text "LFInfo not available for Id" <+> ppr id)
-                Just lf_info -> lf_info
 
 idLFInfo_maybe :: Id -> Maybe LambdaFormInfo
 idLFInfo_maybe = lfInfo . idInfo



View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f51f3738f263c4196614afb70f704476a000d7b2

-- 
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/f51f3738f263c4196614afb70f704476a000d7b2
You're receiving this email because of your account on gitlab.haskell.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20200325/7f43c3d1/attachment.html>


More information about the ghc-commits mailing list