From ba58510ffba0be044fa13214e38d3fe24186b804 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Fri, 13 Feb 2015 12:20:55 +0100 Subject: delete some dead code --- src/Analysis/CompilerAPI.kt | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'src') diff --git a/src/Analysis/CompilerAPI.kt b/src/Analysis/CompilerAPI.kt index d915e23a..abba0afa 100644 --- a/src/Analysis/CompilerAPI.kt +++ b/src/Analysis/CompilerAPI.kt @@ -13,18 +13,6 @@ import com.intellij.psi.search.GlobalSearchScope import org.jetbrains.kotlin.name.Name import org.jetbrains.kotlin.resolve.lazy.ResolveSession -private fun getAnnotationsPath(paths: KotlinPaths, arguments: K2JVMCompilerArguments): MutableList { - val annotationsPath = arrayListOf() - annotationsPath.add(paths.getJdkAnnotationsPath()) - val annotationPaths = arguments.annotations - if (annotationPaths != null) { - for (element in annotationPaths.split(File.pathSeparatorChar)) { - annotationsPath.add(File(element)) - } - } - return annotationsPath -} - fun JetCoreEnvironment.analyze(): ResolveSession { val globalContext = GlobalContext() val project = getProject() @@ -43,12 +31,3 @@ fun JetCoreEnvironment.analyze(): ResolveSession { ) return resolverForProject.resolverForModule(module).lazyResolveSession } - -fun DeclarationDescriptor.isUserCode() = - when (this) { - is PackageViewDescriptor -> false - is PackageFragmentDescriptor -> false - is PropertyAccessorDescriptor -> !isDefault() - is CallableMemberDescriptor -> getKind() == CallableMemberDescriptor.Kind.DECLARATION - else -> true - } -- cgit