summaryrefslogtreecommitdiff
path: root/src/compiler/scala/tools/nsc/transform/UnCurry.scala
diff options
context:
space:
mode:
authorSimon Ochsenreither <simon@ochsenreither.de>2015-10-25 23:20:04 +0100
committerLukas Rytz <lukas.rytz@gmail.com>2015-12-18 10:31:49 +0100
commit92affd3e76d1a3019f1c35ac20af32360d914641 (patch)
tree296270bf7271c1085a94d71e2d4bfa5789b3bfca /src/compiler/scala/tools/nsc/transform/UnCurry.scala
parent1873db3fb78ba777c009bce11564466de875257a (diff)
downloadscala-92affd3e76d1a3019f1c35ac20af32360d914641.tar.gz
scala-92affd3e76d1a3019f1c35ac20af32360d914641.tar.bz2
scala-92affd3e76d1a3019f1c35ac20af32360d914641.zip
Remove unused imports and other minor cleanups
- Language imports are preceding other imports - Deleted empty file: InlineErasure - Removed some unused private[parallel] methods in scala/collection/parallel/package.scala This removes hundreds of warnings when compiling with "-Xlint -Ywarn-dead-code -Ywarn-unused -Ywarn-unused-import".
Diffstat (limited to 'src/compiler/scala/tools/nsc/transform/UnCurry.scala')
-rw-r--r--src/compiler/scala/tools/nsc/transform/UnCurry.scala9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/compiler/scala/tools/nsc/transform/UnCurry.scala b/src/compiler/scala/tools/nsc/transform/UnCurry.scala
index 9d61dbbcae..f7a1f462b7 100644
--- a/src/compiler/scala/tools/nsc/transform/UnCurry.scala
+++ b/src/compiler/scala/tools/nsc/transform/UnCurry.scala
@@ -7,9 +7,10 @@ package scala
package tools.nsc
package transform
-import symtab.Flags._
-import scala.collection.{ mutable, immutable }
import scala.language.postfixOps
+
+import symtab.Flags._
+import scala.collection.mutable
import scala.reflect.internal.util.ListOfNil
/*<export> */
@@ -696,7 +697,7 @@ abstract class UnCurry extends InfoTransform
// declared type and assign this to a synthetic val. Later, we'll patch
// the method body to refer to this, rather than the parameter.
val tempVal: ValDef = {
- // SI-9442: using the "uncurry-erased" type (the one after the uncurry phase) can lead to incorrect
+ // SI-9442: using the "uncurry-erased" type (the one after the uncurry phase) can lead to incorrect
// tree transformations. For example, compiling:
// ```
// def foo(c: Ctx)(l: c.Tree): Unit = {
@@ -725,7 +726,7 @@ abstract class UnCurry extends InfoTransform
// to redo this desugaring manually here
// 2. the type needs to be normalized, since `gen.mkCast` checks this (no HK here, just aliases have
// to be expanded before handing the type to `gen.mkAttributedCast`, which calls `gen.mkCast`)
- val info0 =
+ val info0 =
enteringUncurry(p.symbol.info) match {
case DesugaredParameterType(desugaredTpe) =>
desugaredTpe