Permalink
Browse files

Removing the wrap-method from Promise

  • Loading branch information...
viktorklang committed Apr 15, 2012
1 parent 611be28 commit 48fbd60c3764724e58267054a5efae7717d4cb0d
Showing with 0 additions and 7 deletions.
  1. +0 −7 src/library/scala/concurrent/Promise.scala
@@ -97,13 +97,6 @@ trait Promise[T] {
* @return If the promise has already been completed returns `false`, or `true` otherwise.
*/
def tryFailure(t: Throwable): Boolean = tryComplete(Left(t))
/** Wraps a `Throwable` in an `ExecutionException` if necessary. TODO replace with `resolver` from scala.concurrent
*
* $allowedThrowables
*/
protected def wrap(t: Throwable): Throwable =
if (isFutureThrowable(t)) t else new ExecutionException(t)
}

0 comments on commit 48fbd60

Please sign in to comment.