summaryrefslogtreecommitdiff
path: root/test/files/cldc
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2009-05-29 13:55:01 +0000
committerPaul Phillips <paulp@improving.org>2009-05-29 13:55:01 +0000
commit036f2602017bf04dc3a40783a531d488bbd9e12a (patch)
treef68329af89598b6fb170f84b2109057890a3a6f6 /test/files/cldc
parent09dc46783dcb9c94dc1e3953c5689fd594d484f8 (diff)
downloadscala-036f2602017bf04dc3a40783a531d488bbd9e12a.tar.gz
scala-036f2602017bf04dc3a40783a531d488bbd9e12a.tar.bz2
scala-036f2602017bf04dc3a40783a531d488bbd9e12a.zip
Riffing off the removal of the cldc library, re...
Riffing off the removal of the cldc library, removed forCLDC and its special cases. Not as much fun as removing inIDE, but still fun.
Diffstat (limited to 'test/files/cldc')
-rw-r--r--test/files/cldc/randoms.check1
-rw-r--r--test/files/cldc/randoms.scala29
2 files changed, 0 insertions, 30 deletions
diff --git a/test/files/cldc/randoms.check b/test/files/cldc/randoms.check
deleted file mode 100644
index e73fdf3e4f..0000000000
--- a/test/files/cldc/randoms.check
+++ /dev/null
@@ -1 +0,0 @@
-Execution completed.
diff --git a/test/files/cldc/randoms.scala b/test/files/cldc/randoms.scala
deleted file mode 100644
index 5d3380fef9..0000000000
--- a/test/files/cldc/randoms.scala
+++ /dev/null
@@ -1,29 +0,0 @@
-import javax.microedition.lcdui._
-import javax.microedition.midlet.MIDlet
-
-class Test extends MIDlet with CommandListener {
-
- def startApp {
- val display = Display.getDisplay(this)
-
- val mainForm = new Form("randoms")
- mainForm append "Welcome to the world of MIDlets!"
- mainForm append "(build with Scala)"
- val rnd = new Random
- for (i <- 0 until 10) mainForm append rnd.nextInt.toString
-
- val exitCommand = new Command("Exit", Command.EXIT, 0)
- mainForm addCommand exitCommand
- mainForm setCommandListener this
-
- display setCurrent mainForm
- }
- def pauseApp {}
-
- def destroyApp(unconditional: Boolean) {}
-
- def commandAction(c: Command, s: Displayable) {
- if (c.getCommandType == Command.EXIT)
- notifyDestroyed
- }
-}