From 9aa4ed053c3b2d04d287247995ec9292e93a0a23 Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 27 May 2002 16:13:32 +0000 Subject: [PATCH] [project @ 2002-05-27 16:13:32 by simonmar] Remove u2i, it was identical to getKey. --- ghc/compiler/basicTypes/Unique.lhs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ghc/compiler/basicTypes/Unique.lhs b/ghc/compiler/basicTypes/Unique.lhs index 69c6537..d2f4d7a 100644 --- a/ghc/compiler/basicTypes/Unique.lhs +++ b/ghc/compiler/basicTypes/Unique.lhs @@ -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. -- 1.7.10.4