diff options
author | Jason Zaugg <jzaugg@gmail.com> | 2012-11-22 11:39:51 +0100 |
---|---|---|
committer | Jason Zaugg <jzaugg@gmail.com> | 2012-11-22 11:39:51 +0100 |
commit | a30ba69777a83d77b3924081f8b70d76c4a3ed59 (patch) | |
tree | 1f48723b6fea87ba44b6c517c49702462d6f00ab /src/main/scala | |
parent | e126dc2ded320c81868e6456853f1ecd2629c495 (diff) | |
download | scala-async-a30ba69777a83d77b3924081f8b70d76c4a3ed59.tar.gz scala-async-a30ba69777a83d77b3924081f8b70d76c4a3ed59.tar.bz2 scala-async-a30ba69777a83d77b3924081f8b70d76c4a3ed59.zip |
Remove unused imports.
Diffstat (limited to 'src/main/scala')
-rw-r--r-- | src/main/scala/scala/async/Async.scala | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/main/scala/scala/async/Async.scala b/src/main/scala/scala/async/Async.scala index f9ed27e..d088b45 100644 --- a/src/main/scala/scala/async/Async.scala +++ b/src/main/scala/scala/async/Async.scala @@ -4,18 +4,14 @@ package scala.async import scala.language.experimental.macros - import scala.reflect.macros.Context -import scala.collection.mutable.ListBuffer -import scala.concurrent.{Future, Promise, ExecutionContext, future} -import ExecutionContext.Implicits.global -import scala.util.control.NonFatal - /* * @author Philipp Haller */ object Async extends AsyncBase { + import scala.concurrent.Future + lazy val futureSystem = ScalaConcurrentFutureSystem type FS = ScalaConcurrentFutureSystem.type @@ -125,7 +121,7 @@ abstract class AsyncBase { ... */ val onCompleteHandler = { - val onCompleteHandlers = initStates.flatMap(_.mkOnCompleteHandler).toList + val onCompleteHandlers = initStates.flatMap(_.mkOnCompleteHandler()).toList Function( List(ValDef(Modifiers(PARAM), name.tr, TypeTree(TryAnyType), EmptyTree)), Match(Ident(name.state), onCompleteHandlers)) @@ -171,7 +167,7 @@ abstract class AsyncBase { // Spawn a future to: futureSystemOps.future[Unit] { c.Expr[Unit](Block( - // define vars for all intermediate results + // define vars for all intermediate results that are accessed from multiple states localVarTrees :+ // define the resume() method resumeFunTree :+ |