diff options
-rw-r--r-- | config/list/library.lst | 1 | ||||
-rw-r--r-- | sources/scala/runtime/NativeLoop.java | 22 | ||||
-rw-r--r-- | sources/scala/runtime/ScalaRunTime.scala | 14 |
3 files changed, 0 insertions, 37 deletions
diff --git a/config/list/library.lst b/config/list/library.lst index 6b9fa929a0..3db13230c5 100644 --- a/config/list/library.lst +++ b/config/list/library.lst @@ -153,7 +153,6 @@ runtime/FNV_Hash.java runtime/PearsonHash.java runtime/IOMap.java runtime/InterpreterSupport.java -runtime/NativeLoop.java runtime/ResultOrException.java runtime/RunTime.java runtime/ScalaRunTime.scala diff --git a/sources/scala/runtime/NativeLoop.java b/sources/scala/runtime/NativeLoop.java deleted file mode 100644 index a45cc9f202..0000000000 --- a/sources/scala/runtime/NativeLoop.java +++ /dev/null @@ -1,22 +0,0 @@ -/* __ *\ -** ________ ___ / / ___ Scala API ** -** / __/ __// _ | / / / _ | (c) 2003, LAMP/EPFL ** -** __\ \/ /__/ __ |/ /__/ __ | ** -** /____/\___/_/ |_/____/_/ | | ** -** |/ ** -** $Id$ -\* */ - -package scala.runtime; - - -public class NativeLoop { - - /** @meta method [?A] (def scala.Boolean, def ?A) scala.Unit; - */ - public static void loopWhile(scala.Function0 cond, scala.Function0 body) { - while (((scala.Boolean)cond.apply()).value) { - body.apply(); - } - } -} diff --git a/sources/scala/runtime/ScalaRunTime.scala b/sources/scala/runtime/ScalaRunTime.scala index afcc34fbe7..7a13eac8c9 100644 --- a/sources/scala/runtime/ScalaRunTime.scala +++ b/sources/scala/runtime/ScalaRunTime.scala @@ -28,18 +28,4 @@ object ScalaRunTime { def Try[a](def/*!!!*/ block: a): Try[a] = new Try(ResultOrException.tryBlock(block)); - def While(def/*!!!*/ cond: Boolean)(def/*!!!*/ body: Unit): Unit = - NativeLoop.loopWhile(cond, body); - - trait DoWhile { - def While(def/*!!!*/ condition: Boolean): Unit; - } - - def Do(def/*!!!*/ command: Unit): DoWhile = - new DoWhile { - def While(def/*!!!*/ condition: Boolean): Unit = { - command; - NativeLoop.loopWhile(condition, command); - } - } } |