summaryrefslogtreecommitdiff
path: root/src/synthesis.cc
diff options
context:
space:
mode:
authorAdrian Thurston <thurston@complang.org>2014-12-25 11:06:27 -0500
committerAdrian Thurston <thurston@complang.org>2014-12-25 11:06:27 -0500
commit353ddb63f7268d2cc96df328c8562b4f3050d1d6 (patch)
tree2e063c019d1f9821b2c02f8d40c3e762e674f5b0 /src/synthesis.cc
parent3d3c0ad4877a225f5e14ef69d39ed3efdad27843 (diff)
downloadcolm-353ddb63f7268d2cc96df328c8562b4f3050d1d6.tar.gz
commit to object semantics for new
Diffstat (limited to 'src/synthesis.cc')
-rw-r--r--src/synthesis.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/synthesis.cc b/src/synthesis.cc
index 3f2efe50..b0ed2971 100644
--- a/src/synthesis.cc
+++ b/src/synthesis.cc
@@ -1056,15 +1056,6 @@ UniqueType *LangTerm::evaluateMatch( Compiler *pd, CodeVect &code ) const
UniqueType *LangTerm::evaluateNew( Compiler *pd, CodeVect &code ) const
{
- /* Evaluate the expression. */
- UniqueType *ut = evaluateNewstruct( pd, code );
-
- code.append( IN_TREE_NEW );
- return pd->findUniqueType( TYPE_PTR, ut->langEl );
-}
-
-UniqueType *LangTerm::evaluateNew2( Compiler *pd, CodeVect &code ) const
-{
/* What is being newstructed. */
UniqueType *replUT = typeRef->uniqueType;
@@ -1744,8 +1735,6 @@ UniqueType *LangTerm::evaluate( Compiler *pd, CodeVect &code ) const
return evaluateSendTree( pd, code );
case NewType:
return evaluateNew( pd, code );
- case New2Type:
- return evaluateNew2( pd, code );
case TypeIdType: {
/* Evaluate the expression. */
UniqueType *ut = typeRef->uniqueType;