[commit: ghc] master: Remove unused foldNameEnv (031de8b)
git at git.haskell.org
git at git.haskell.org
Thu Apr 28 22:25:00 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/031de8bbcebf897a8fb7b1e571291da2387b49ca/ghc
>---------------------------------------------------------------
commit 031de8bbcebf897a8fb7b1e571291da2387b49ca
Author: Bartosz Nitka <niteria at gmail.com>
Date: Thu Apr 28 15:27:17 2016 -0700
Remove unused foldNameEnv
foldNameEnv is nondeterministic in the general case and it's
currently unused so we can remove it.
>---------------------------------------------------------------
031de8bbcebf897a8fb7b1e571291da2387b49ca
compiler/basicTypes/NameEnv.hs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/compiler/basicTypes/NameEnv.hs b/compiler/basicTypes/NameEnv.hs
index d2641e2..d9ad359 100644
--- a/compiler/basicTypes/NameEnv.hs
+++ b/compiler/basicTypes/NameEnv.hs
@@ -16,7 +16,7 @@ module NameEnv (
unitNameEnv, nameEnvElts, nameEnvUniqueElts,
extendNameEnv_C, extendNameEnv_Acc, extendNameEnv,
extendNameEnvList, extendNameEnvList_C,
- foldNameEnv, filterNameEnv, anyNameEnv,
+ filterNameEnv, anyNameEnv,
plusNameEnv, plusNameEnv_C, alterNameEnv,
lookupNameEnv, lookupNameEnv_NF, delFromNameEnv, delListFromNameEnv,
elemNameEnv, mapNameEnv, disjointNameEnv,
@@ -87,7 +87,6 @@ elemNameEnv :: Name -> NameEnv a -> Bool
unitNameEnv :: Name -> a -> NameEnv a
lookupNameEnv :: NameEnv a -> Name -> Maybe a
lookupNameEnv_NF :: NameEnv a -> Name -> a
-foldNameEnv :: (a -> b -> b) -> b -> NameEnv a -> b
filterNameEnv :: (elt -> Bool) -> NameEnv elt -> NameEnv elt
anyNameEnv :: (elt -> Bool) -> NameEnv elt -> Bool
mapNameEnv :: (elt1 -> elt2) -> NameEnv elt1 -> NameEnv elt2
@@ -103,7 +102,6 @@ lookupNameEnv x y = lookupUFM x y
alterNameEnv = alterUFM
mkNameEnv l = listToUFM l
elemNameEnv x y = elemUFM x y
-foldNameEnv a b c = foldUFM a b c
plusNameEnv x y = plusUFM x y
plusNameEnv_C f x y = plusUFM_C f x y
extendNameEnv_C f x y z = addToUFM_C f x y z
More information about the ghc-commits
mailing list