diff options
author | phaller <hallerp@gmail.com> | 2012-11-21 10:34:00 +0100 |
---|---|---|
committer | phaller <hallerp@gmail.com> | 2012-11-21 10:34:00 +0100 |
commit | ccaf4fd5fd2f6282393100c42a182713daa547e8 (patch) | |
tree | 3596bb43c323779e4ec3f6ce414e59e6fc378cb7 /src/main/scala | |
parent | 6205b323cdd7661ef2a923728b42de4506768dc6 (diff) | |
download | scala-async-ccaf4fd5fd2f6282393100c42a182713daa547e8.tar.gz scala-async-ccaf4fd5fd2f6282393100c42a182713daa547e8.tar.bz2 scala-async-ccaf4fd5fd2f6282393100c42a182713daa547e8.zip |
Remove obsolete transformations
Diffstat (limited to 'src/main/scala')
-rw-r--r-- | src/main/scala/scala/async/ExprBuilder.scala | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/scala/scala/async/ExprBuilder.scala b/src/main/scala/scala/async/ExprBuilder.scala index 9e967bc..07aa1ee 100644 --- a/src/main/scala/scala/async/ExprBuilder.scala +++ b/src/main/scala/scala/async/ExprBuilder.scala @@ -267,7 +267,7 @@ final class ExprBuilder[C <: Context, FS <: FutureSystem](override val c: C, val budget: Int, private var toRename: Map[String, c.Name]) { val asyncStates = ListBuffer[builder.AsyncState]() - private var stateBuilder = new builder.AsyncStateBuilder(startState, toRename.map { case (k, v) => (k.toString, v) }) + private var stateBuilder = new builder.AsyncStateBuilder(startState, toRename) // current state builder private var currState = startState @@ -333,7 +333,7 @@ final class ExprBuilder[C <: Context, FS <: FutureSystem](override val c: C, val // create new state builder for state `currState + ifBudget` currState = currState + ifBudget - stateBuilder = new builder.AsyncStateBuilder(currState, toRename.map { case (k, v) => (k.toString, v) }) + stateBuilder = new builder.AsyncStateBuilder(currState, toRename) case Match(scrutinee, cases) => checkForUnsupportedAwait(scrutinee) @@ -359,7 +359,7 @@ final class ExprBuilder[C <: Context, FS <: FutureSystem](override val c: C, val // create new state builder for state `currState + matchBudget` currState = currState + matchBudget - stateBuilder = new builder.AsyncStateBuilder(currState, toRename.map { case (k, v) => (k.toString, v) }) + stateBuilder = new builder.AsyncStateBuilder(currState, toRename) case ClassDef(_, name, _, _) => // do not allow local class definitions, because of SI-5467 (specific to case classes, though) |