From 4b70c05fed4ece152eedffc33ed53cb28b74df39 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 15 May 2011 21:19:37 +0000 Subject: Remove cast form (unnecessary since compile stage casts paramters as needed anyway). git-svn-id: http://svn.drobilla.net/resp/trunk@428 ad02d1e2-f140-0410-9f75-f8b11f17cedd --- src/simplify.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/simplify.cpp') diff --git a/src/simplify.cpp b/src/simplify.cpp index d6188ad..ea83cff 100644 --- a/src/simplify.cpp +++ b/src/simplify.cpp @@ -113,10 +113,7 @@ simplify_match(CEnv& cenv, const ATuple* match) throw() assert(fnT.head->list_ref(1)); cenv.setType(fn, fnT); - const ATuple* cast = tup(Cursor(), cenv.penv.sym("cast"), obj, 0); - cenv.setType(cast, texp->rst()); - - List call(Cursor(), fn, cast, 0); + List call(Cursor(), fn, obj, 0); cenv.setTypeSameAs(call, match); copyIf.push_back(call); } -- cgit v1.2.1