summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Zaugg <jzaugg@gmail.com>2015-08-31 13:52:29 +1000
committerJason Zaugg <jzaugg@gmail.com>2015-09-21 14:00:10 +1000
commit955ce9f92b8611cacd355cabe8b4c1ae6ee0ea05 (patch)
tree3ffd59e62c7fff5d1ed2c253a5b8dae5f22346e5
parentdaa421189d9191f05b5006418580eb6c0e0b1ec7 (diff)
downloadscala-955ce9f92b8611cacd355cabe8b4c1ae6ee0ea05.tar.gz
scala-955ce9f92b8611cacd355cabe8b4c1ae6ee0ea05.tar.bz2
scala-955ce9f92b8611cacd355cabe8b4c1ae6ee0ea05.zip
SI-8127 Remove dead code in Uncurry
It remains from the days of yore, when patterns survived this long in the compiler.
-rw-r--r--src/compiler/scala/tools/nsc/transform/UnCurry.scala7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/UnCurry.scala b/src/compiler/scala/tools/nsc/transform/UnCurry.scala
index 163c44822e..ee7c839de9 100644
--- a/src/compiler/scala/tools/nsc/transform/UnCurry.scala
+++ b/src/compiler/scala/tools/nsc/transform/UnCurry.scala
@@ -475,13 +475,6 @@ abstract class UnCurry extends InfoTransform
withNeedLift(needLift = true) { super.transform(tree) }
else
super.transform(tree)
- case UnApply(fn, args) =>
- val fn1 = transform(fn)
- val args1 = fn.symbol.name match {
- case nme.unapplySeq => transformArgs(tree.pos, fn.symbol, args, patmat.alignPatterns(global.typer.context, tree).expectedTypes)
- case _ => args
- }
- treeCopy.UnApply(tree, fn1, args1)
case Apply(fn, args) =>
val needLift = needTryLift || !fn.symbol.isLabel // SI-6749, no need to lift in args to label jumps.