Dropped confusing method signature

This commit is contained in:
Valentin Kipyatkov
2015-02-09 20:11:03 +03:00
parent e57799ca00
commit 2c5953dbe6
4 changed files with 3 additions and 7 deletions
@@ -30,10 +30,6 @@ import org.jetbrains.kotlin.idea.search.allScope
import org.jetbrains.kotlin.utils.addIfNotNull
public object DescriptorToDeclarationUtil {
public fun getDeclaration(file: JetFile, descriptor: DeclarationDescriptor): PsiElement? {
return getDeclaration(file.getProject(), descriptor)
}
public fun getDeclaration(project: Project, descriptor: DeclarationDescriptor): PsiElement? {
var elements: Collection<PsiElement> = DescriptorToSourceUtils.descriptorToDeclarations(descriptor)
if (elements.isEmpty()) {