diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2015-08-31 13:52:29 +1000 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2015-09-21 14:00:10 +1000 |
commit | 955ce9f92b8611cacd355cabe8b4c1ae6ee0ea05 (patch) | |
tree | 3ffd59e62c7fff5d1ed2c253a5b8dae5f22346e5 /src/compiler | |
parent | daa421189d9191f05b5006418580eb6c0e0b1ec7 (diff) | |
download | scala-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.
Diffstat (limited to 'src/compiler')
-rw-r--r-- | src/compiler/scala/tools/nsc/transform/UnCurry.scala | 7 |
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. |