aboutsummaryrefslogtreecommitdiffstats
path: root/llvm.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-03-15 05:55:48 +0000
committerDavid Robillard <d@drobilla.net>2009-03-15 05:55:48 +0000
commiteea2c8f035d2e5ae768fd2de0e704bfb49652cf0 (patch)
treea4bf03a277e6af1ee0e19cbe02a88bb904fb20b5 /llvm.cpp
parent1bf9034de882d364390e8887945a150bfb3873c1 (diff)
downloadresp-eea2c8f035d2e5ae768fd2de0e704bfb49652cf0.tar.gz
resp-eea2c8f035d2e5ae768fd2de0e704bfb49652cf0.tar.bz2
resp-eea2c8f035d2e5ae768fd2de0e704bfb49652cf0.zip
Remove unnecessary code.
git-svn-id: http://svn.drobilla.net/resp/tuplr@99 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'llvm.cpp')
-rw-r--r--llvm.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm.cpp b/llvm.cpp
index 871fa18..8417163 100644
--- a/llvm.cpp
+++ b/llvm.cpp
@@ -332,14 +332,7 @@ ACall::lift(CEnv& cenv)
if (c->prot()->size() > size() - 1)
throw Error((format("too few arguments to function `%1%'") % at(0)->str()).str(), loc);
- // Extend environment with bound and typed parameters
- /*cenv.push();
-
- for (size_t i = 1; i < size(); ++i)
- cenv.def(c->prot()->at(i-1)->as<ASymbol*>(), at(i), cenv.type(at(i)), NULL);*/
-
c->liftCall(cenv, argsT); // Lift called closure
- //cenv.pop(); // Restore environment
}
CValue
@@ -644,12 +637,6 @@ repl(CEnv& cenv)
Constraints c;
body->constrain(cenv.tenv, c); // Constrain types
- for (TEnv::GenericTypes::const_iterator i = cenv.tenv.genericTypes.begin();
- i != cenv.tenv.genericTypes.end(); ++i) {
- c.push_back(Constraint(cenv.tenv.var(i->first),
- new AType(*i->second), i->first->loc));
- }
-
Subst oldSubst = cenv.tsubst;
cenv.tsubst = Subst::compose(cenv.tsubst, TEnv::unify(c)); // Solve type constraints