From: Matthijs Kooijman Date: Tue, 14 Jul 2009 13:36:39 +0000 (+0200) Subject: Remove the (now unused) is_wild predicate. X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=bee8c7fec67b12937f8001d2d96d405cca01afa5;p=matthijs%2Fmaster-project%2Fc%CE%BBash.git Remove the (now unused) is_wild predicate. --- diff --git a/CoreTools.hs b/CoreTools.hs index 4677af4..0c0e1fa 100644 --- a/CoreTools.hs +++ b/CoreTools.hs @@ -133,14 +133,6 @@ tfvec_elem ty = el_ty Nothing -> error $ "\nCoreTools.tfvec_len: Not a vector type: " ++ (pprString ty) [len, el_ty] = args --- Is this a wild binder? -is_wild :: CoreSyn.CoreBndr -> Bool --- wild binders have a particular unique, that we copied from MkCore.lhs to --- here. However, this comparison didn't work, so we'll just check the --- occstring for now... TODO ---(Var.varUnique bndr) == (Unique.mkBuiltinUnique 1) -is_wild bndr = "wild" == (OccName.occNameString . Name.nameOccName . Var.varName) bndr - -- Is the given core expression a lambda abstraction? is_lam :: CoreSyn.CoreExpr -> Bool is_lam (CoreSyn.Lam _ _) = True