diff options
author | David Robillard <d@drobilla.net> | 2009-03-15 05:55:48 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-03-15 05:55:48 +0000 |
commit | eea2c8f035d2e5ae768fd2de0e704bfb49652cf0 (patch) | |
tree | a4bf03a277e6af1ee0e19cbe02a88bb904fb20b5 | |
parent | 1bf9034de882d364390e8887945a150bfb3873c1 (diff) | |
download | resp-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
-rw-r--r-- | llvm.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
@@ -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 |