Cleanup: remove empty constructor body applied

This commit is contained in:
Mikhail Glukhikh
2016-11-25 11:54:05 +03:00
parent d5638dffaa
commit f71ea8858b
4 changed files with 5 additions and 9 deletions

View File

@@ -71,7 +71,7 @@ class ControlFlowInformationProvider private constructor(
}
constructor(declaration: KtElement, trace: BindingTrace)
: this(declaration, trace, ControlFlowProcessor(trace).generatePseudocode(declaration)) {}
: this(declaration, trace, ControlFlowProcessor(trace).generatePseudocode(declaration))
fun checkForLocalClassOrObjectMode() {
// Local classes and objects are analyzed twice: when TopDownAnalyzer processes it and as a part of its container.

View File

@@ -27,11 +27,9 @@ import org.jetbrains.kotlin.psi.stubs.KotlinNameReferenceExpressionStub
import org.jetbrains.kotlin.psi.stubs.elements.KtStubElementTypes
class KtNameReferenceExpression : KtExpressionImplStub<KotlinNameReferenceExpressionStub>, KtSimpleNameExpression {
constructor(node: ASTNode) : super(node) {
}
constructor(node: ASTNode) : super(node)
constructor(stub: KotlinNameReferenceExpressionStub) : super(stub, KtStubElementTypes.REFERENCE_EXPRESSION) {
}
constructor(stub: KotlinNameReferenceExpressionStub) : super(stub, KtStubElementTypes.REFERENCE_EXPRESSION)
override fun getReferencedName(): String {
val stub = stub

View File

@@ -75,8 +75,7 @@ open class DelegatingBindingTrace(private val parentContext: BindingContext,
filter: BindingTraceFilter = BindingTraceFilter.ACCEPT_ALL)
: this(parentContext,
AnalyzingUtils.formDebugNameForBindingTrace(debugName, resolutionSubjectForMessage),
filter = filter) {
}
filter = filter)
override fun getBindingContext(): BindingContext = bindingContext

View File

@@ -40,8 +40,7 @@ abstract class KotlinFindUsagesHandler<T : PsiElement>(psiElement: T,
return psiElement as T
}
constructor(psiElement: T, factory: KotlinFindUsagesHandlerFactory) : this(psiElement, emptyList(), factory) {
}
constructor(psiElement: T, factory: KotlinFindUsagesHandlerFactory) : this(psiElement, emptyList(), factory)
override fun getPrimaryElements(): Array<PsiElement> {
return if (elementsToSearch.isEmpty())