Skip to content

Commit 26b9899

Browse files
author
Antoine Brunner
committed
Revert some unwanted changes, preparing for PR
1 parent 358ea0e commit 26b9899

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

bench/src/main/scala/Benchmarks.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ object Bench {
3030
val iterations = if (intArgs.length > 1) intArgs(1).toInt else 20
3131
val forks = if (intArgs.length > 2) intArgs(2).toInt else 1
3232

33+
3334
import File.{ separator => sep }
3435

3536
val args2 = args1.map { arg =>

library/src/scala/runtime/DynamicTuple.scala

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,9 @@ object DynamicTuple {
257257
).asInstanceOf[Zip[This, T2]]
258258
}
259259

260-
def dynamicMap[This <: Tuple, F[_]](self: This, f: [t] => t => F[t]): Map[This, F] = (self: Any) match {
261-
case self: Unit => ().asInstanceOf[Map[This, F]]
262-
case _ =>
263-
Tuple.fromArray(self.asInstanceOf[Product].productIterator.map(f(_)).toArray) // TODO use toIArray of Object to avoid double/triple array copy
264-
.asInstanceOf[Map[This, F]]
265-
}
260+
def dynamicMap[This <: Tuple, F[_]](self: This, f: [t] => t => F[t]): Map[This, F] =
261+
Tuple.fromArray(self.asInstanceOf[Product].productIterator.map(f(_)).toArray) // TODO use toIArray of Object to avoid double/triple array copy
262+
.asInstanceOf[Map[This, F]]
266263

267264
def consIterator(head: Any, tail: Tuple): Iterator[Any] =
268265
Iterator.single(head) ++ tail.asInstanceOf[Product].productIterator

0 commit comments

Comments
 (0)