From 48fbd60c3764724e58267054a5efae7717d4cb0d Mon Sep 17 00:00:00 2001 From: Viktor Klang Date: Sun, 15 Apr 2012 21:38:59 +0200 Subject: Removing the wrap-method from Promise --- src/library/scala/concurrent/Promise.scala | 7 ------- 1 file changed, 7 deletions(-) (limited to 'src/library') diff --git a/src/library/scala/concurrent/Promise.scala b/src/library/scala/concurrent/Promise.scala index b3f1a1a0e0..f7ec0714cf 100644 --- a/src/library/scala/concurrent/Promise.scala +++ b/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) } -- cgit v1.2.3