[commit: ghc] master: Remove dead function SimplUtils.countValArgs (54e67c1)

git at git.haskell.org git at git.haskell.org
Fri Apr 15 15:31:03 UTC 2016


Repository : ssh://git@git.haskell.org/ghc

On branch  : master
Link       : http://ghc.haskell.org/trac/ghc/changeset/54e67c1edf8342f5f82e09ae55152fb4cbb7b64c/ghc

>---------------------------------------------------------------

commit 54e67c1edf8342f5f82e09ae55152fb4cbb7b64c
Author: Simon Peyton Jones <simonpj at microsoft.com>
Date:   Fri Apr 8 17:28:44 2016 +0100

    Remove dead function SimplUtils.countValArgs


>---------------------------------------------------------------

54e67c1edf8342f5f82e09ae55152fb4cbb7b64c
 compiler/simplCore/SimplUtils.hs | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

diff --git a/compiler/simplCore/SimplUtils.hs b/compiler/simplCore/SimplUtils.hs
index 48650c3..0e40343 100644
--- a/compiler/simplCore/SimplUtils.hs
+++ b/compiler/simplCore/SimplUtils.hs
@@ -21,7 +21,7 @@ module SimplUtils (
         isSimplified,
         contIsDupable, contResultType, contHoleType,
         contIsTrivial, contArgs,
-        countValArgs, countArgs,
+        countArgs,
         mkBoringStop, mkRhsStop, mkLazyArgStop, contIsRhsOrArg,
         interestingCallContext,
 
@@ -359,13 +359,6 @@ contHoleType (Select { sc_dup = d, sc_bndr =  b, sc_env = se })
   = perhapsSubstTy d se (idType b)
 
 -------------------
-countValArgs :: SimplCont -> Int
--- Count value arguments excluding coercions
-countValArgs (ApplyToVal { sc_arg = arg, sc_cont = cont })
-  | Coercion {} <- arg = countValArgs cont
-  | otherwise          = 1 + countValArgs cont
-countValArgs _         = 0
-
 countArgs :: SimplCont -> Int
 -- Count all arguments, including types, coercions, and other values
 countArgs (ApplyToTy  { sc_cont = cont }) = 1 + countArgs cont



More information about the ghc-commits mailing list