summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/application.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/application.cc')
-rw-r--r--Build/source/utils/asymptote/application.cc11
1 files changed, 2 insertions, 9 deletions
diff --git a/Build/source/utils/asymptote/application.cc b/Build/source/utils/asymptote/application.cc
index 7a146036722..9036f8d426b 100644
--- a/Build/source/utils/asymptote/application.cc
+++ b/Build/source/utils/asymptote/application.cc
@@ -36,13 +36,6 @@ score castScore(env &e, formal& target, formal& source) {
e.castable(target.t,source.t, symbol::castsym)) ? CAST : FAIL;
}
-defaultArg::defaultArg(types::ty *t)
- : arg(new absyntax::callExp(position(),
- new absyntax::varEntryExp(position(),
- new function(t),
- run::pushDefault)),
- t)
-{}
void restArg::transMaker(coenv &e, Int size, bool rest) {
// Push the number of cells and call the array maker.
@@ -237,7 +230,7 @@ bool application::matchRest(env &e, formal &source, varinit *a) {
formal &target=sig->getRest();
score s=castScore(e, target, source);
if (s!=FAIL) {
- rest->addRest(new arg(a, target.t));
+ rest->addRest(new varinitArg(a, target.t));
scores.push_back(s);
return true;
}
@@ -297,7 +290,7 @@ bool application::matchOpen(env &e, signature *source, arglist &al) {
rest->add(seq.addArg(al[i].val, f[i].t, i));
if (source->hasRest())
- rest->addRest(new arg(al.rest.val, source->getRest().t));
+ rest->addRest(new varinitArg(al.rest.val, source->getRest().t));
return true;
}