summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphaller <hallerp@gmail.com>2012-05-03 06:28:40 +0200
committerphaller <hallerp@gmail.com>2012-05-03 06:28:40 +0200
commit3694082bdeefb090d8d2efdefc3c6e51a0f1ed85 (patch)
tree9d8e73ec60388595958e968169c451a181ba8d2f
parent069966ab385be1c7f68f987f4c078597406d8905 (diff)
downloadscala-3694082bdeefb090d8d2efdefc3c6e51a0f1ed85.tar.gz
scala-3694082bdeefb090d8d2efdefc3c6e51a0f1ed85.tar.bz2
scala-3694082bdeefb090d8d2efdefc3c6e51a0f1ed85.zip
Remove newPromise method
-rw-r--r--src/library/scala/concurrent/Future.scala4
-rw-r--r--src/library/scala/concurrent/impl/Promise.scala2
2 files changed, 0 insertions, 6 deletions
diff --git a/src/library/scala/concurrent/Future.scala b/src/library/scala/concurrent/Future.scala
index 10090c3413..70b3c3dbbb 100644
--- a/src/library/scala/concurrent/Future.scala
+++ b/src/library/scala/concurrent/Future.scala
@@ -131,10 +131,6 @@ trait Future[+T] extends Awaitable[T] {
/* Miscellaneous */
- /** Creates a new promise.
- */
-// protected def newPromise[S]: Promise[S]
-
/** Returns whether the future has already been completed with
* a value or an exception.
*
diff --git a/src/library/scala/concurrent/impl/Promise.scala b/src/library/scala/concurrent/impl/Promise.scala
index d91e9d707a..da70b3dea5 100644
--- a/src/library/scala/concurrent/impl/Promise.scala
+++ b/src/library/scala/concurrent/impl/Promise.scala
@@ -128,8 +128,6 @@ object Promise {
override def isCompleted(): Boolean = true
- def newPromise[S]: scala.concurrent.Promise[S] = new Promise.DefaultPromise()
-
def tryComplete(value: Either[Throwable, T]): Boolean = false
def onComplete[U](func: Either[Throwable, T] => U): this.type = {