Minor: remove unused parameter from LookupTracker.record

This commit is contained in:
Zalim Bashorov
2015-11-26 17:34:20 +03:00
parent 7faa886d26
commit d1c5bd4526
5 changed files with 8 additions and 7 deletions
@@ -361,6 +361,6 @@ public abstract class LazyJavaScope(protected val c: LazyJavaResolverContext) :
}
protected fun recordLookup(name: Name, from: LookupLocation) {
c.components.lookupTracker.record(from, ownerDescriptor, this, name)
c.components.lookupTracker.record(from, ownerDescriptor, name)
}
}
@@ -22,9 +22,8 @@ import org.jetbrains.kotlin.descriptors.PackageFragmentDescriptor
import org.jetbrains.kotlin.incremental.components.*
import org.jetbrains.kotlin.name.Name
import org.jetbrains.kotlin.resolve.descriptorUtil.fqNameUnsafe
import org.jetbrains.kotlin.resolve.scopes.MemberScope
public fun LookupTracker.record(from: LookupLocation, scopeOwner: DeclarationDescriptor, inScope: MemberScope, name: Name) {
public fun LookupTracker.record(from: LookupLocation, scopeOwner: DeclarationDescriptor, name: Name) {
if (this == LookupTracker.DO_NOTHING || from is NoLookupLocation) return
val location = from.location ?: return
@@ -184,6 +184,6 @@ public abstract class DeserializedMemberScope protected constructor(
}
private fun recordLookup(name: Name, from: LookupLocation) {
c.components.lookupTracker.record(from, c.containingDeclaration, this, name)
c.components.lookupTracker.record(from, c.containingDeclaration, name)
}
}