summaryrefslogtreecommitdiff
path: root/sources
diff options
context:
space:
mode:
authorpaltherr <paltherr@epfl.ch>2004-01-13 13:33:35 +0000
committerpaltherr <paltherr@epfl.ch>2004-01-13 13:33:35 +0000
commitad1e0f4cc35d6a39dbb04d862d0b3cd40fafa92b (patch)
treec245ff4df525501ee5841471969f54d230f98b20 /sources
parentd9c1452ff877e2ffb8850becbc78735ae6f6a52b (diff)
downloadscala-ad1e0f4cc35d6a39dbb04d862d0b3cd40fafa92b.tar.gz
scala-ad1e0f4cc35d6a39dbb04d862d0b3cd40fafa92b.tar.bz2
scala-ad1e0f4cc35d6a39dbb04d862d0b3cd40fafa92b.zip
- Removed method synchronized
Diffstat (limited to 'sources')
-rw-r--r--sources/scala/Monitor.scala4
-rw-r--r--sources/scala/Predef.scala3
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");