FIR IDE: remove unused method in light classes with compilation error

This commit is contained in:
Ilya Kirillov
2020-11-04 14:02:21 +03:00
parent b42bed7b3c
commit 9350f7aff9
@@ -71,14 +71,6 @@ class FirLightClassForFacade(
override fun getScope(): PsiElement? = parent
private inline fun <reified T : FirDeclaration, K> KtFile.withFir(body: T.() -> K): K {
val resolveState = LowLevelFirApiFacade.getResolveStateFor(this)
return LowLevelFirApiFacade.withFirFile(this, resolveState) {
require(it is T)
it.body()
}
}
private fun loadMethodsFromFile(
file: KtFile,
result: MutableList<KtLightMethod>