diff options
Diffstat (limited to 'src/library/scala/collection/mutable/StringBuilder.scala')
-rw-r--r-- | src/library/scala/collection/mutable/StringBuilder.scala | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/src/library/scala/collection/mutable/StringBuilder.scala b/src/library/scala/collection/mutable/StringBuilder.scala index c1558f522f..2cfab4713c 100644 --- a/src/library/scala/collection/mutable/StringBuilder.scala +++ b/src/library/scala/collection/mutable/StringBuilder.scala @@ -89,10 +89,6 @@ final class StringBuilder(private val underlying: JavaStringBuilder) */ def capacity: Int = underlying.capacity() - @deprecated("Use `ensureCapacity` instead. An assignment is misleading because\n"+ - "it can never decrease the capacity.", "2.8.0") - def capacity_=(n: Int) { ensureCapacity(n) } - /** Ensure that the capacity is at least the given argument. * If the argument is greater than the current capacity, new * storage will be allocated with size equal to the given @@ -368,31 +364,6 @@ final class StringBuilder(private val underlying: JavaStringBuilder) def insert(index: Int, x: Double): StringBuilder = insert(index, String.valueOf(x)) def insert(index: Int, x: Char): StringBuilder = insert(index, String.valueOf(x)) - @deprecated("Use appendAll instead. This method is deprecated because of the\n"+ - "possible confusion with `append(Any)`.", "2.8.0") - def append(x: Seq[Char]): StringBuilder = appendAll(x) - - @deprecated("use appendAll instead. This method is deprecated because\n"+ - "of the possible confusion with `append(Any)`.", "2.8.0") - def append(x: Array[Char]): StringBuilder = appendAll(x) - - @deprecated("use appendAll instead. This method is deprecated because\n"+ - "of the possible confusion with `append(Any, Int, Int)'.", "2.8.0") - def append(x: Array[Char], offset: Int, len: Int): StringBuilder = appendAll(x, offset, len) - - @deprecated("use insertAll instead. This method is deprecated because of the\n"+ - "possible confusion with `insert(Int, Any, Int, Int)'.", "2.8.0") - def insert(index: Int, str: Array[Char], offset: Int, len: Int): StringBuilder = - insertAll(index, str, offset, len) - - @deprecated("use insertAll instead. This method is deprecated because of\n"+ - "the possible confusion with `insert(Int, Any)'.", "2.8.0") - def insert(at: Int, x: Seq[Char]): StringBuilder = insertAll(at, x) - - @deprecated("use insertAll instead. This method is deprecated because of\n"+ - "the possible confusion with `insert(Int, Any)'.", "2.8.0") - def insert(at: Int, x: Array[Char]): StringBuilder = insertAll(at, x) - /** Finds the index of the first occurrence of the specified substring. * * @param str the target string to search for |