[commit: ghc] master: Kill unused foldOccSet (3a53380)
git at git.haskell.org
git at git.haskell.org
Thu Apr 28 16:49:45 UTC 2016
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/3a53380d40a1f9465075b46fba36451116c12ff1/ghc
>---------------------------------------------------------------
commit 3a53380d40a1f9465075b46fba36451116c12ff1
Author: Bartosz Nitka <niteria at gmail.com>
Date: Thu Apr 28 09:51:56 2016 -0700
Kill unused foldOccSet
foldOccSet if used would be a potential source of nondeterminism.
Since it's not used we can just remove it.
>---------------------------------------------------------------
3a53380d40a1f9465075b46fba36451116c12ff1
compiler/basicTypes/OccName.hs | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/compiler/basicTypes/OccName.hs b/compiler/basicTypes/OccName.hs
index 74bd96b..e15cfbb 100644
--- a/compiler/basicTypes/OccName.hs
+++ b/compiler/basicTypes/OccName.hs
@@ -92,7 +92,7 @@ module OccName (
OccSet, emptyOccSet, unitOccSet, mkOccSet, extendOccSet,
extendOccSetList,
unionOccSets, unionManyOccSets, minusOccSet, elemOccSet, occSetElts,
- foldOccSet, isEmptyOccSet, intersectOccSet, intersectsOccSet,
+ isEmptyOccSet, intersectOccSet, intersectsOccSet,
filterOccSet,
-- * Tidying up
@@ -446,7 +446,6 @@ unionManyOccSets :: [OccSet] -> OccSet
minusOccSet :: OccSet -> OccSet -> OccSet
elemOccSet :: OccName -> OccSet -> Bool
occSetElts :: OccSet -> [OccName]
-foldOccSet :: (OccName -> b -> b) -> b -> OccSet -> b
isEmptyOccSet :: OccSet -> Bool
intersectOccSet :: OccSet -> OccSet -> OccSet
intersectsOccSet :: OccSet -> OccSet -> Bool
@@ -462,7 +461,6 @@ unionManyOccSets = unionManyUniqSets
minusOccSet = minusUniqSet
elemOccSet = elementOfUniqSet
occSetElts = uniqSetToList
-foldOccSet = foldUniqSet
isEmptyOccSet = isEmptyUniqSet
intersectOccSet = intersectUniqSets
intersectsOccSet s1 s2 = not (isEmptyOccSet (s1 `intersectOccSet` s2))
More information about the ghc-commits
mailing list