diff options
author | Paul Phillips <paulp@improving.org> | 2010-03-24 15:37:50 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2010-03-24 15:37:50 +0000 |
commit | 916d6fbc825699198c918fb41928062f80ad9edd (patch) | |
tree | 52b7bbbbea4585425822030cd764b8679cac4120 /src/library | |
parent | 408f351c13df42127a30ba11c81d049bb604c432 (diff) | |
download | scala-916d6fbc825699198c918fb41928062f80ad9edd.tar.gz scala-916d6fbc825699198c918fb41928062f80ad9edd.tar.bz2 scala-916d6fbc825699198c918fb41928062f80ad9edd.zip |
Reverted a presumably unintentional reincarnati...
Reverted a presumably unintentional reincarnation of old predef (these
functions are in ScalaRunTime now.) Review by odersky just in case there
was a secret plan.
Diffstat (limited to 'src/library')
-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) |