New J2K: remove RedundantCompanionReferenceInspectionBasedProcessing as it already applied on shortening references

This commit is contained in:
Ilya Kirillov
2019-09-29 11:27:12 +03:00
parent 95f69a9b58
commit f77825b85a
2 changed files with 0 additions and 12 deletions
@@ -147,7 +147,6 @@ private val removeRedundantElementsProcessingGroup =
processings = listOf(
RemoveExplicitTypeArgumentsProcessing(),
RemoveJavaStreamsCollectCallTypeArgumentsProcessing(),
RedundantCompanionReferenceInspectionBasedProcessing(),
ExplicitThisInspectionBasedProcessing(),
intentionBasedProcessing(RemoveEmptyClassBodyIntention())
)
@@ -442,17 +442,6 @@ class RedundantSemicolonInspectionBasedProcessing :
}
}
class RedundantCompanionReferenceInspectionBasedProcessing :
InspectionLikeProcessingForElement<KtReferenceExpression>(KtReferenceExpression::class.java) {
override fun isApplicableTo(element: KtReferenceExpression, settings: ConverterSettings?): Boolean =
RedundantCompanionReferenceInspection.isRedundantCompanionReference(element)
override fun apply(element: KtReferenceExpression) {
RemoveRedundantCompanionReferenceFix.removeRedundantCompanionReference(element)
}
}
class ExplicitThisInspectionBasedProcessing :
InspectionLikeProcessingForElement<KtExpression>(KtExpression::class.java) {
override fun isApplicableTo(element: KtExpression, settings: ConverterSettings?): Boolean =