From 78f0de3de587c1230692f645e8de1e861878aaf6 Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Mon, 26 Oct 2015 22:29:02 +0300 Subject: [PATCH] Removed hack for Repl --- .../org/jetbrains/kotlin/resolve/scopes/utils/ScopeUtils.kt | 5 ----- 1 file changed, 5 deletions(-) diff --git a/compiler/frontend/src/org/jetbrains/kotlin/resolve/scopes/utils/ScopeUtils.kt b/compiler/frontend/src/org/jetbrains/kotlin/resolve/scopes/utils/ScopeUtils.kt index dff184233f7..22faa51fbdb 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/resolve/scopes/utils/ScopeUtils.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/resolve/scopes/utils/ScopeUtils.kt @@ -303,11 +303,6 @@ fun LexicalScope.addImportingScope(importScope: ImportingScope): LexicalScope = addImportingScopes(listOf(importScope)) fun ImportingScope.withParent(newParent: ImportingScope?): ImportingScope { - // TODO: it's a hack for Repl - if (this is MemberScopeToImportingScopeAdapter) { - return MemberScopeToImportingScopeAdapter(newParent, memberScope) - } - return object: ImportingScope by this { override val parent: ImportingScope? get() = newParent