diff options
Diffstat (limited to 'src/library/scala/collection/mutable/BufferLike.scala')
-rw-r--r-- | src/library/scala/collection/mutable/BufferLike.scala | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/src/library/scala/collection/mutable/BufferLike.scala b/src/library/scala/collection/mutable/BufferLike.scala index 067911f75e..acf26e59eb 100644 --- a/src/library/scala/collection/mutable/BufferLike.scala +++ b/src/library/scala/collection/mutable/BufferLike.scala @@ -214,51 +214,6 @@ trait BufferLike[A, +This <: BufferLike[A, This] with Buffer[A]] */ def readOnly: scala.collection.Seq[A] = toSeq - /** Adds a number of elements in an array - * - * @param src the array - * @param start the first element to append - * @param len the number of elements to append - */ - @deprecated("replace by: `buf ++= src.view(start, end)`", "2.8.0") - def ++=(src: Array[A], start: Int, len: Int) { - var i = start - val end = i + len - while (i < end) { - this += src(i) - i += 1 - } - } - - /** Adds a single element to this collection and returns - * the collection itself. - * - * $compatMutate - * You are strongly recommended to use `+=` instead. - * - * @param elem the element to add. - */ - @deprecated("Use += instead if you intend to add by side effect to an existing collection.\n"+ - "Use `clone() +=` if you intend to create a new collection.", "2.8.0") - def + (elem: A): This = { +=(elem); repr } - - /** Adds two or more elements to this collection and returns - * the collection itself. - * - * $compatMutate - * You are strongly recommended to use `++=` instead. - * - * @param elem1 the first element to add. - * @param elem2 the second element to add. - * @param elems the remaining elements to add. - */ - @deprecated("Use ++= instead if you intend to add by side effect to an existing collection.\n"+ - "Use `clone() ++=` if you intend to create a new collection.", "2.8.0") - def + (elem1: A, elem2: A, elems: A*): This = { - this += elem1 += elem2 ++= elems - repr - } - /** Creates a new collection containing both the elements of this collection and the provided * traversable object. * |