diff options
author | phaller <hallerp@gmail.com> | 2012-05-03 06:28:40 +0200 |
---|---|---|
committer | phaller <hallerp@gmail.com> | 2012-05-03 06:28:40 +0200 |
commit | 3694082bdeefb090d8d2efdefc3c6e51a0f1ed85 (patch) | |
tree | 9d8e73ec60388595958e968169c451a181ba8d2f /src/library | |
parent | 069966ab385be1c7f68f987f4c078597406d8905 (diff) | |
download | scala-3694082bdeefb090d8d2efdefc3c6e51a0f1ed85.tar.gz scala-3694082bdeefb090d8d2efdefc3c6e51a0f1ed85.tar.bz2 scala-3694082bdeefb090d8d2efdefc3c6e51a0f1ed85.zip |
Remove newPromise method
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/concurrent/Future.scala | 4 | ||||
-rw-r--r-- | src/library/scala/concurrent/impl/Promise.scala | 2 |
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 = { |