[commit: ghc] wip/tdammers/T11066: remove dead maybeIsLFCon (54407b7)

git at git.haskell.org git at git.haskell.org
Wed May 30 10:46:26 UTC 2018


Repository : ssh://git@git.haskell.org/ghc

On branch  : wip/tdammers/T11066
Link       : http://ghc.haskell.org/trac/ghc/changeset/54407b768543ad9202f9594ba718723c43d280c2/ghc

>---------------------------------------------------------------

commit 54407b768543ad9202f9594ba718723c43d280c2
Author: Gabor Greif <ggreif at gmail.com>
Date:   Mon May 28 14:14:59 2018 +0200

    remove dead maybeIsLFCon


>---------------------------------------------------------------

54407b768543ad9202f9594ba718723c43d280c2
 compiler/codeGen/StgCmmClosure.hs | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/compiler/codeGen/StgCmmClosure.hs b/compiler/codeGen/StgCmmClosure.hs
index b021fe0..6f0feaa 100644
--- a/compiler/codeGen/StgCmmClosure.hs
+++ b/compiler/codeGen/StgCmmClosure.hs
@@ -27,7 +27,7 @@ module StgCmmClosure (
         mkApLFInfo, mkLFImported, mkLFArgument, mkLFLetNoEscape,
         mkLFStringLit,
         lfDynTag,
-        maybeIsLFCon, isLFThunk, isLFReEntrant, lfUpdatable,
+        isLFThunk, isLFReEntrant, lfUpdatable,
 
         -- * Used by other modules
         CgLoc(..), SelfLoopInfo, CallMethod(..),
@@ -387,11 +387,6 @@ lfDynTag _      _other                      = 0
 --                Observing LambdaFormInfo
 -----------------------------------------------------------------------------
 
--------------
-maybeIsLFCon :: LambdaFormInfo -> Maybe DataCon
-maybeIsLFCon (LFCon con) = Just con
-maybeIsLFCon _ = Nothing
-
 ------------
 isLFThunk :: LambdaFormInfo -> Bool
 isLFThunk (LFThunk {})  = True



More information about the ghc-commits mailing list