diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/library/scala/Boolean.scala | 2 | ||||
-rw-r--r-- | src/library/scala/Double.scala | 2 | ||||
-rw-r--r-- | src/library/scala/Unit.scala | 3 | ||||
-rwxr-xr-x | src/library/scala/collection/LinearSeqOptimized.scala | 1 | ||||
-rw-r--r-- | src/library/scala/collection/mutable/HashMap.scala | 2 | ||||
-rw-r--r-- | src/library/scala/collection/parallel/immutable/ParRange.scala | 1 | ||||
-rw-r--r-- | src/library/scala/xml/NamespaceBinding.scala | 2 |
7 files changed, 1 insertions, 12 deletions
diff --git a/src/library/scala/Boolean.scala b/src/library/scala/Boolean.scala index d51afdd931..e43b7d0a82 100644 --- a/src/library/scala/Boolean.scala +++ b/src/library/scala/Boolean.scala @@ -10,8 +10,6 @@ package scala -import scala.language.implicitConversions - /** `Boolean` (equivalent to Java's `boolean` primitive type) is a * subtype of [[scala.AnyVal]]. Instances of `Boolean` are not * represented by an object in the underlying runtime system. diff --git a/src/library/scala/Double.scala b/src/library/scala/Double.scala index 977ebd19d6..85bf9fe5c5 100644 --- a/src/library/scala/Double.scala +++ b/src/library/scala/Double.scala @@ -10,8 +10,6 @@ package scala -import scala.language.implicitConversions - /** `Double`, a 64-bit IEEE-754 floating point number (equivalent to Java's `double` primitive type) is a * subtype of [[scala.AnyVal]]. Instances of `Double` are not * represented by an object in the underlying runtime system. diff --git a/src/library/scala/Unit.scala b/src/library/scala/Unit.scala index 0e59a184d1..01e592ec3c 100644 --- a/src/library/scala/Unit.scala +++ b/src/library/scala/Unit.scala @@ -10,9 +10,6 @@ package scala -import scala.language.implicitConversions - - /** `Unit` is a subtype of [[scala.AnyVal]]. There is only one value of type * `Unit`, `()`, and it is not represented by any object in the underlying * runtime system. A method with return type `Unit` is analogous to a Java diff --git a/src/library/scala/collection/LinearSeqOptimized.scala b/src/library/scala/collection/LinearSeqOptimized.scala index ed5f2406e8..48bd4777f0 100755 --- a/src/library/scala/collection/LinearSeqOptimized.scala +++ b/src/library/scala/collection/LinearSeqOptimized.scala @@ -10,7 +10,6 @@ package scala.collection import mutable.ListBuffer import immutable.List -import scala.util.control.Breaks._ import scala.annotation.tailrec /** A template trait for linear sequences of type `LinearSeq[A]` which optimizes diff --git a/src/library/scala/collection/mutable/HashMap.scala b/src/library/scala/collection/mutable/HashMap.scala index 3cd7f07d83..8755b81ff6 100644 --- a/src/library/scala/collection/mutable/HashMap.scala +++ b/src/library/scala/collection/mutable/HashMap.scala @@ -95,7 +95,7 @@ extends AbstractMap[A, B] def iterator = entriesIterator map {e => (e.key, e.value)} - override def foreach[C](f: ((A, B)) => C): Unit = foreachEntry(e => f(e.key, e.value)) + override def foreach[C](f: ((A, B)) => C): Unit = foreachEntry(e => f((e.key, e.value))) /* Override to avoid tuple allocation in foreach */ override def keySet: scala.collection.Set[A] = new DefaultKeySet { diff --git a/src/library/scala/collection/parallel/immutable/ParRange.scala b/src/library/scala/collection/parallel/immutable/ParRange.scala index 0c9f82ba2a..bf757b6072 100644 --- a/src/library/scala/collection/parallel/immutable/ParRange.scala +++ b/src/library/scala/collection/parallel/immutable/ParRange.scala @@ -12,7 +12,6 @@ import scala.collection.immutable.Range import scala.collection.parallel.Combiner import scala.collection.parallel.SeqSplitter import scala.collection.generic.CanCombineFrom -import scala.collection.parallel.IterableSplitter import scala.collection.Iterator /** Parallel ranges. diff --git a/src/library/scala/xml/NamespaceBinding.scala b/src/library/scala/xml/NamespaceBinding.scala index 3a63d47d4e..32c378f3ef 100644 --- a/src/library/scala/xml/NamespaceBinding.scala +++ b/src/library/scala/xml/NamespaceBinding.scala @@ -38,8 +38,6 @@ case class NamespaceBinding(prefix: String, uri: String, parent: NamespaceBindin override def toString(): String = sbToString(buildString(_, TopScope)) - private def shadowRedefined: NamespaceBinding = shadowRedefined(TopScope) - private def shadowRedefined(stop: NamespaceBinding): NamespaceBinding = { def prefixList(x: NamespaceBinding): List[String] = if ((x == null) || (x eq stop)) Nil |