From d5376fa8ba065060f7e8c0095846c8d30b83b78a Mon Sep 17 00:00:00 2001 From: Denis Zharkov Date: Thu, 5 Oct 2017 11:17:15 +0300 Subject: [PATCH] Drop effectively unused parameter with default value --- .../src/org/jetbrains/kotlin/types/KotlinTypeFactory.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/core/descriptors/src/org/jetbrains/kotlin/types/KotlinTypeFactory.kt b/core/descriptors/src/org/jetbrains/kotlin/types/KotlinTypeFactory.kt index ac117c1efb7..687eb6acf33 100644 --- a/core/descriptors/src/org/jetbrains/kotlin/types/KotlinTypeFactory.kt +++ b/core/descriptors/src/org/jetbrains/kotlin/types/KotlinTypeFactory.kt @@ -74,7 +74,7 @@ object KotlinTypeFactory { annotations: Annotations, descriptor: ClassDescriptor, arguments: List - ): SimpleType = simpleType(annotations, descriptor.typeConstructor, arguments, false, descriptor.getMemberScope(arguments)) + ): SimpleType = simpleType(annotations, descriptor.typeConstructor, arguments, nullable = false) @JvmStatic fun simpleType( @@ -82,9 +82,8 @@ object KotlinTypeFactory { annotations: Annotations = baseType.annotations, constructor: TypeConstructor = baseType.constructor, arguments: List = baseType.arguments, - nullable: Boolean = baseType.isMarkedNullable, - memberScope: MemberScope = baseType.memberScope - ): SimpleType = simpleType(annotations, constructor, arguments, nullable, memberScope) + nullable: Boolean = baseType.isMarkedNullable + ): SimpleType = simpleType(annotations, constructor, arguments, nullable) @JvmStatic fun flexibleType(lowerBound: SimpleType, upperBound: SimpleType): UnwrappedType {