From 472841de16157c3e806319c7db262fa34c77f9e9 Mon Sep 17 00:00:00 2001 From: Valentin Kipyatkov Date: Thu, 11 Jun 2015 15:59:26 +0300 Subject: [PATCH] Inlined method --- .../kotlin/resolve/scopes/WritableScopeImpl.kt | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/compiler/frontend/src/org/jetbrains/kotlin/resolve/scopes/WritableScopeImpl.kt b/compiler/frontend/src/org/jetbrains/kotlin/resolve/scopes/WritableScopeImpl.kt index 57f7ef377f2..e58b353cd81 100644 --- a/compiler/frontend/src/org/jetbrains/kotlin/resolve/scopes/WritableScopeImpl.kt +++ b/compiler/frontend/src/org/jetbrains/kotlin/resolve/scopes/WritableScopeImpl.kt @@ -150,17 +150,13 @@ public class WritableScopeImpl(override val workerScope: JetScope, return workerScope.getLocalVariable(name) } - private fun getFunctionGroups(): SetMultimap { - if (functionGroups == null) { - functionGroups = LinkedHashMultimap.create() - } - return functionGroups!! - } - override fun addFunctionDescriptor(functionDescriptor: FunctionDescriptor) { checkMayWrite() - getFunctionGroups().put(functionDescriptor.getName(), functionDescriptor) + if (functionGroups == null) { + functionGroups = LinkedHashMultimap.create() + } + functionGroups!!.put(functionDescriptor.getName(), functionDescriptor) explicitlyAddedDescriptors.add(functionDescriptor) }