From bee8c7fec67b12937f8001d2d96d405cca01afa5 Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Tue, 14 Jul 2009 15:36:39 +0200 Subject: [PATCH] Remove the (now unused) is_wild predicate. --- CoreTools.hs | 8 -------- 1 file changed, 8 deletions(-) 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 -- 2.30.2