[project @ 2002-05-27 16:13:32 by simonmar]
authorsimonmar <unknown>
Mon, 27 May 2002 16:13:32 +0000 (16:13 +0000)
committersimonmar <unknown>
Mon, 27 May 2002 16:13:32 +0000 (16:13 +0000)
Remove u2i, it was identical to getKey.

ghc/compiler/basicTypes/Unique.lhs

index 69c6537..d2f4d7a 100644 (file)
@@ -17,13 +17,12 @@ Haskell).
 \begin{code}
 module Unique (
        Unique, Uniquable(..), hasKey,
-       u2i,                            -- hack: used in UniqFM
 
        pprUnique, pprUnique10,
 
        mkUnique,                       -- Used in UniqSupply
        mkUniqueGrimily,                -- Used in UniqSupply only!
-       getKey,                         -- Used in Var only!
+       getKey,                         -- Used in Var, UniqFM, Name only!
 
        incrUnique,                     -- Used for renumbering
        deriveUnique,                   -- Ditto
@@ -71,11 +70,6 @@ Fast comparison is everything on @Uniques@:
 data Unique = MkUnique Int#
 \end{code}
 
-\begin{code}
-u2i :: Unique -> FastInt
-u2i (MkUnique i) = i
-\end{code}
-
 Now come the functions which construct uniques from their pieces, and vice versa.
 The stuff about unique *supplies* is handled further down this module.