diff options
-rw-r--r-- | src/library/scala/Predef.scala | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/library/scala/Predef.scala b/src/library/scala/Predef.scala index 01df1a49f2..20d70edadf 100644 --- a/src/library/scala/Predef.scala +++ b/src/library/scala/Predef.scala @@ -55,22 +55,6 @@ object Predef extends LowPriorityImplicits { @inline def locally[T](x: T): T = x - // hashcode ----------------------------------------------------------- - - @inline def hash(x: Any): Int = - if (x.isInstanceOf[Number]) runtime.BoxesRunTime.hashFromNumber(x.asInstanceOf[Number]) - else x.hashCode - - @inline def hash(x: Number): Int = - runtime.BoxesRunTime.hashFromNumber(x) - - @inline def hash(x: java.lang.Long): Int = { - val iv = x.intValue - if (iv == x.longValue) iv else x.hashCode - } - - @inline def hash(x: Int): Int = x - // errors and asserts ------------------------------------------------- def error(message: String): Nothing = throw new RuntimeException(message) |