Permalink
Browse files

Remove newPromise method

  • Loading branch information...
phaller committed May 3, 2012
1 parent 069966a commit 3694082bdeefb090d8d2efdefc3c6e51a0f1ed85
Showing with 0 additions and 6 deletions.
  1. +0 −4 src/library/scala/concurrent/Future.scala
  2. +0 −2 src/library/scala/concurrent/impl/Promise.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.
*
@@ -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 = {

0 comments on commit 3694082

Please sign in to comment.