[project @ 2000-10-03 08:29:30 by simonpj]
authorsimonpj <unknown>
Tue, 3 Oct 2000 08:29:30 +0000 (08:29 +0000)
committersimonpj <unknown>
Tue, 3 Oct 2000 08:29:30 +0000 (08:29 +0000)
Remove dead code mkLookupFun

ghc/compiler/stranal/SaAbsInt.lhs

index 5fd46c4..3d209c9 100644 (file)
@@ -816,19 +816,6 @@ cheapFixpoint anal ids rhss env
          AbsAnal -> AbsBot
 \end{code}
 
-\begin{verbatim}
-mkLookupFun :: (key -> key -> Bool)    -- Equality predicate
-           -> (key -> key -> Bool)     -- Less-than predicate
-           -> [(key,val)]              -- The assoc list
-           -> key                      -- The key
-           -> Maybe val                -- The corresponding value
-
-mkLookupFun eq lt alist s
-  = case [a | (s',a) <- alist, s' `eq` s] of
-      []    -> Nothing
-      (a:_) -> Just a
-\end{verbatim}
-
 \begin{code}
 fixpoint :: AnalysisKind -> [Id] -> [CoreExpr] -> AbsValEnv -> [AbsVal]