From 111425f14bcce5728530a5fc733f0a1c9fe6ec6b Mon Sep 17 00:00:00 2001 From: Hubert Plociniczak Date: Tue, 18 Jan 2011 10:44:53 +0000 Subject: Removing code which I believe to be some debugg... Removing code which I believe to be some debugging statements. Causes infinite loop anyway. Review by odersky --- .../scala/tools/nsc/typechecker/NamesDefaults.scala | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/compiler/scala/tools/nsc/typechecker/NamesDefaults.scala b/src/compiler/scala/tools/nsc/typechecker/NamesDefaults.scala index 0c9bebd510..468e2a6b20 100644 --- a/src/compiler/scala/tools/nsc/typechecker/NamesDefaults.scala +++ b/src/compiler/scala/tools/nsc/typechecker/NamesDefaults.scala @@ -372,22 +372,7 @@ trait NamesDefaults { self: Analyzer => val defaultArgs = missing map (p => { var default1 = qual match { case Some(q) => gen.mkAttributedSelect(q.duplicate, defaultGetter(p, context)) - case None => - val dgetter = defaultGetter(p, context) - if (dgetter == NoSymbol) { - println("no getter for "+p+" in "+p.owner) - println(p.owner.paramss) - var ctx = context - while (ctx.owner != p.owner.owner) { - println("inner scope: "+ctx.scope+ctx.scope.hashCode+" "+ctx.owner) - ctx = ctx.outer - } - while (ctx.owner == p.owner.owner) { - println("this scope: "+ctx.scope+ctx.scope.hashCode+" "+ctx.owner) - ctx = ctx.outer - } - } - gen.mkAttributedRef(dgetter) + case None => gen.mkAttributedRef(defaultGetter(p, context)) } default1 = if (targs.isEmpty) default1 -- cgit v1.2.3