Skip to content

Commit

Permalink
fix(intellij-plugins): remove unused declaration extensions in psiCla…
Browse files Browse the repository at this point in the history
…ss.kt (#654)
  • Loading branch information
piiertho committed Jun 27, 2024
1 parent a9d42d2 commit 57e1dea
Showing 1 changed file with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,3 @@ fun PsiClass.resolveToDescriptor(): ClassDescriptor? {
else -> getJavaClassDescriptor()
}
}

val PsiClass.declarations: List<PsiElement>
get() = when (this) {
is KtClass -> this.declarations
else -> this.ownDeclarations.map { symbolDeclaration -> symbolDeclaration.declaringElement }
}

0 comments on commit 57e1dea

Please sign in to comment.