From ceb4aa7ac0da4bcb4142eb4c92f9d85a19248027 Mon Sep 17 00:00:00 2001 From: Mikhail Glukhikh Date: Wed, 18 May 2016 18:03:35 +0300 Subject: [PATCH] Cleanup: simplify for --- .../src/org/jetbrains/kotlin/cfg/ControlFlowInfo.kt | 6 +++--- .../org/jetbrains/kotlin/cfg/PseudocodeVariablesData.kt | 7 +++---- .../kotlin/js/translate/declaration/ClassTranslator.kt | 6 +++--- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/compiler/frontend/src/org/jetbrains/kotlin/cfg/ControlFlowInfo.kt b/compiler/frontend/src/org/jetbrains/kotlin/cfg/ControlFlowInfo.kt index f6be19b4189..8c1527fd8a0 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/cfg/ControlFlowInfo.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/cfg/ControlFlowInfo.kt @@ -43,9 +43,9 @@ class InitControlFlowInfo(map: MutableMap) { - for (entry in CodegenUtil.getNonPrivateTraitMethods(descriptor).entries) { - if (!areNamesEqual(entry.key, entry.value)) { - properties += generateDelegateCall(entry.value, entry.key, JsLiteral.THIS, context()) + for ((key, value) in CodegenUtil.getNonPrivateTraitMethods(descriptor)) { + if (!areNamesEqual(key, value)) { + properties += generateDelegateCall(value, key, JsLiteral.THIS, context()) } } }