Skip to content
Browse files

Remove unused symbols and imports from the library.

  • Loading branch information...
1 parent 1666f6e commit 9a82fc05244503c32c1ae66352114573eac379c3 @vigdorchik vigdorchik committed Mar 4, 2013
View
2 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.
View
2 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.
View
3 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
View
1 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
View
2 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 {
View
1 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.
View
2 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

0 comments on commit 9a82fc0

Please sign in to comment.
Something went wrong with that request. Please try again.