diff options
author | paltherr <paltherr@epfl.ch> | 2004-01-13 13:33:35 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-01-13 13:33:35 +0000 |
commit | ad1e0f4cc35d6a39dbb04d862d0b3cd40fafa92b (patch) | |
tree | c245ff4df525501ee5841471969f54d230f98b20 | |
parent | d9c1452ff877e2ffb8850becbc78735ae6f6a52b (diff) | |
download | scala-ad1e0f4cc35d6a39dbb04d862d0b3cd40fafa92b.tar.gz scala-ad1e0f4cc35d6a39dbb04d862d0b3cd40fafa92b.tar.bz2 scala-ad1e0f4cc35d6a39dbb04d862d0b3cd40fafa92b.zip |
- Removed method synchronized
-rw-r--r-- | sources/scala/Monitor.scala | 4 | ||||
-rw-r--r-- | sources/scala/Predef.scala | 3 |
2 files changed, 0 insertions, 7 deletions
diff --git a/sources/scala/Monitor.scala b/sources/scala/Monitor.scala index 5c2622f394..23bf869d68 100644 --- a/sources/scala/Monitor.scala +++ b/sources/scala/Monitor.scala @@ -17,9 +17,5 @@ package scala; * @version 1.0, 11/07/2003 */ trait Monitor { - - def synchronized[a](def p: a): a = - scala.runtime.NativeMonitor.synchronised(this, p); - def await(def cond: boolean) = while (false == cond) { wait() } } diff --git a/sources/scala/Predef.scala b/sources/scala/Predef.scala index b1533ba731..315c9a2fe6 100644 --- a/sources/scala/Predef.scala +++ b/sources/scala/Predef.scala @@ -42,9 +42,6 @@ object Predef { def exit: scala.Unit = java.lang.System.exit(0); - def synchronized[A](obj: AnyRef)(def body: A): A = - scala.runtime.NativeMonitor.synchronised(obj, body); - def assert(assertion: Boolean): Unit = { if (!assertion) throw new Error("assertion failed"); |