From 42f11c0affa9e0e901ff3b7f9fa116e8b82c9dbb Mon Sep 17 00:00:00 2001 From: Burak Emir Date: Tue, 7 Aug 2007 17:55:36 +0000 Subject: elim'ed dead code from Par... --- src/compiler/scala/tools/nsc/matching/ParallelMatching.scala | 4 ---- src/compiler/scala/tools/nsc/matching/PatternMatchers.scala | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala b/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala index 1439a52614..29a575fb04 100644 --- a/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala +++ b/src/compiler/scala/tools/nsc/matching/ParallelMatching.scala @@ -1169,10 +1169,6 @@ object Rep { } else if (scrutineeTree.tpe <:< tpe && tpe <:< definitions.AnyRefClass.tpe) { //if(scrutineeTree.symbol.hasFlag(symtab.Flags.SYNTHETIC)) Literal(Constant(true)) else NotNull(scrutineeTree) - } else if(tpe.termSymbol.isModule) { // object - //Console.println("iT"+tpe.prefix.symbol.isTerm) - //Console.println("lmoc"+tpe./*?type?*/symbol.linkedModuleOfClass) - Eq(gen.mkAttributedRef(tpe.prefix, tpe.termSymbol), scrutineeTree) } else //Console.println(tpe.prefix.symbol.isTerm) //Console.println(tpe./*?type?*/symbol) diff --git a/src/compiler/scala/tools/nsc/matching/PatternMatchers.scala b/src/compiler/scala/tools/nsc/matching/PatternMatchers.scala index 616733508d..6de908a6a0 100644 --- a/src/compiler/scala/tools/nsc/matching/PatternMatchers.scala +++ b/src/compiler/scala/tools/nsc/matching/PatternMatchers.scala @@ -1076,7 +1076,7 @@ print() defaultCase = node node = node.or - case VariablePat(tree) if node.tpe./*?type?*/symbol hasFlag Flags.CASE => + case VariablePat(tree) if node.tpe.typeSymbol hasFlag Flags.CASE => cases = insertNode(getCaseTag(node.tpe), node, cases) node = node.or -- cgit v1.2.3