[commit: ghc] master: remove dead maybeIsLFCon (6848a99)

git at git.haskell.org git at git.haskell.org
Tue May 29 10:26:51 UTC 2018


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

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/6848a992ad38a4b21d1063c8acbbc398b06ab921/ghc

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

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

    remove dead maybeIsLFCon


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

6848a992ad38a4b21d1063c8acbbc398b06ab921
 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