Minor. Unused declarations removed

This commit is contained in:
Andrey Breslav
2015-03-02 18:45:12 +03:00
parent e0b7e4efca
commit 7c62d8ed83
@@ -90,7 +90,6 @@ class LazyJavaTypeResolver(
}
private class LazyStarProjection(
c: LazyJavaResolverContext,
val typeParameter: TypeParameterDescriptor,
val attr: JavaTypeAttributes
) : TypeProjectionBase() {
@@ -198,7 +197,7 @@ class LazyJavaTypeResolver(
TypeProjectionImpl(projectionKind, KotlinBuiltIns.getInstance().getNullableAnyType())
}
else
LazyStarProjection(c, parameter, attr)
LazyStarProjection(parameter, attr)
}
}
if (isConstructorTypeParameter()) {
@@ -229,7 +228,7 @@ class LazyJavaTypeResolver(
is JavaWildcardType -> {
val bound = javaType.getBound()
if (bound == null)
LazyStarProjection(c, typeParameter, attr)
LazyStarProjection(typeParameter, attr)
else {
var projectionKind = if (javaType.isExtends()) OUT_VARIANCE else IN_VARIANCE
if (projectionKind == typeParameter.getVariance()) {
@@ -337,8 +336,6 @@ trait JavaTypeAttributes {
val annotations: Annotations
}
fun JavaTypeAttributes.isFlexible() = flexibility != INFLEXIBLE
enum class JavaTypeFlexibility {
INFLEXIBLE
FLEXIBLE_UPPER_BOUND