diff --git a/daml-lf/data/src/main/scala/com/digitalasset/daml/lf/data/ImmArray.scala b/daml-lf/data/src/main/scala/com/digitalasset/daml/lf/data/ImmArray.scala index ab84f26ba2c2..2546ca6498b9 100644 --- a/daml-lf/data/src/main/scala/com/digitalasset/daml/lf/data/ImmArray.scala +++ b/daml-lf/data/src/main/scala/com/digitalasset/daml/lf/data/ImmArray.scala @@ -12,8 +12,7 @@ import scalaz.{Applicative, Equal, Foldable, Order, Traverse} import scala.annotation.tailrec import scala.collection.StrictOptimizedSeqFactory -import scala.collection.immutable.ArraySeq -import scala.collection.immutable.{AbstractSeq, IndexedSeqOps, StrictOptimizedSeqOps} +import scala.collection.immutable.{AbstractSeq, ArraySeq, IndexedSeqOps, StrictOptimizedSeqOps} import scala.collection.mutable.Builder import scala.reflect.ClassTag @@ -261,9 +260,7 @@ final class ImmArray[+A] private ( * return the `array` as is and people would be able to break the original * `ImmArray`. */ - def toSeq: ImmArray.ImmArraySeq[A] = new ImmArray.ImmArraySeq(this) - - def toArraySeq: ArraySeq[A] = array + def toSeq: ImmArray.ImmArraySeq[A] = toIndexedSeq /** O(n) */ def collect[B](f: PartialFunction[A, B]): ImmArray[B] = {