[commit: ghc] master: Remove unused function sigForThisGroup (d55a8b4)
Simon Peyton Jones
simonpj at microsoft.com
Tue Apr 19 15:56:33 CEST 2011
Repository : ssh://darcs.haskell.org//srv/darcs/ghc
On branch : master
http://hackage.haskell.org/trac/ghc/changeset/d55a8b427c66c98ce35c2a98bef871399bb2bf06
>---------------------------------------------------------------
commit d55a8b427c66c98ce35c2a98bef871399bb2bf06
Author: simonpj <simonpj at cam-04-unx.europe.corp.microsoft.com>
Date: Tue Apr 19 13:34:04 2011 +0100
Remove unused function sigForThisGroup
>---------------------------------------------------------------
compiler/hsSyn/HsBinds.lhs | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/compiler/hsSyn/HsBinds.lhs b/compiler/hsSyn/HsBinds.lhs
index e080bee..675afa2 100644
--- a/compiler/hsSyn/HsBinds.lhs
+++ b/compiler/hsSyn/HsBinds.lhs
@@ -679,16 +679,12 @@ okInstDclSig (TypeSig _ _) = False
okInstDclSig (FixSig _) = False
okInstDclSig _ = True
-sigForThisGroup :: NameSet -> LSig Name -> Bool
-sigForThisGroup ns sig
- = case sigName sig of
- Nothing -> False
- Just n -> n `elemNameSet` ns
-
sigName :: LSig name -> Maybe name
+-- Used only in Haddock
sigName (L _ sig) = sigNameNoLoc sig
sigNameNoLoc :: Sig name -> Maybe name
+-- Used only in Haddock
sigNameNoLoc (TypeSig n _) = Just (unLoc n)
sigNameNoLoc (SpecSig n _ _) = Just (unLoc n)
sigNameNoLoc (InlineSig n _) = Just (unLoc n)
More information about the Cvs-ghc
mailing list