diff options
author | Burak Emir <emir@epfl.ch> | 2007-08-07 17:55:36 +0000 |
---|---|---|
committer | Burak Emir <emir@epfl.ch> | 2007-08-07 17:55:36 +0000 |
commit | 42f11c0affa9e0e901ff3b7f9fa116e8b82c9dbb (patch) | |
tree | 7dcccb53ec7dbae7986f6a293301dd50fd3ac17c | |
parent | e822b909c27723848acfc68207e33a3d0e95f8ce (diff) | |
download | scala-42f11c0affa9e0e901ff3b7f9fa116e8b82c9dbb.tar.gz scala-42f11c0affa9e0e901ff3b7f9fa116e8b82c9dbb.tar.bz2 scala-42f11c0affa9e0e901ff3b7f9fa116e8b82c9dbb.zip |
elim'ed dead code from Par...
-rw-r--r-- | src/compiler/scala/tools/nsc/matching/ParallelMatching.scala | 4 | ||||
-rw-r--r-- | src/compiler/scala/tools/nsc/matching/PatternMatchers.scala | 2 |
2 files changed, 1 insertions, 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 |