[commit: ghc] wip/names3: PrelInfo: Kill dead code (7ae1e06)

git at git.haskell.org git at git.haskell.org
Tue Sep 13 15:06:55 UTC 2016


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

On branch  : wip/names3
Link       : http://ghc.haskell.org/trac/ghc/changeset/7ae1e0631f080d8068abc9a351a2e4167126e091/ghc

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

commit 7ae1e0631f080d8068abc9a351a2e4167126e091
Author: Ben Gamari <ben at smart-cactus.org>
Date:   Thu Sep 8 17:54:27 2016 -0400

    PrelInfo: Kill dead code


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

7ae1e0631f080d8068abc9a351a2e4167126e091
 compiler/prelude/PrelInfo.hs | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/compiler/prelude/PrelInfo.hs b/compiler/prelude/PrelInfo.hs
index bca992c..1a48f4f 100644
--- a/compiler/prelude/PrelInfo.hs
+++ b/compiler/prelude/PrelInfo.hs
@@ -97,20 +97,6 @@ knownKeyNames
            , basicKnownKeyNames ]
 
   where
-  -- All of the names associated with a known-key TyCon (where we only have its
-  -- name, not the TyCon itself). This includes the names of the TyCon itself
-  -- and its type rep binding.
-  tycon_kk_names :: Name -> [Name]
-  tycon_kk_names tc = [tc, mkPrelTyConRepName tc]
-
-  -- All of the names associated with a known-key DataCon. This includes the
-  -- names of the DataCon itself and its promoted type rep.
-  datacon_kk_names :: Name -> [Name]
-  datacon_kk_names dc =
-      [ dc
-      , mkPrelTyConRepName dc
-      ]
-
   -- All of the names associated with a wired-in TyCon.
   -- This includes the TyCon itself, its DataCons and promoted TyCons.
   wired_tycon_kk_names :: TyCon -> [Name]



More information about the ghc-commits mailing list