diff options
author | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-13 12:20:55 +0100 |
---|---|---|
committer | Dmitry Jemerov <yole@jetbrains.com> | 2015-02-13 12:20:55 +0100 |
commit | ba58510ffba0be044fa13214e38d3fe24186b804 (patch) | |
tree | 623cd85953b421571c8ef07613026e011f107021 /src | |
parent | f2fd617b921f7a9bee826a271213e17586e6949c (diff) | |
download | dokka-ba58510ffba0be044fa13214e38d3fe24186b804.tar.gz dokka-ba58510ffba0be044fa13214e38d3fe24186b804.tar.bz2 dokka-ba58510ffba0be044fa13214e38d3fe24186b804.zip |
delete some dead code
Diffstat (limited to 'src')
-rw-r--r-- | src/Analysis/CompilerAPI.kt | 21 |
1 files changed, 0 insertions, 21 deletions
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<File> { - val annotationsPath = arrayListOf<File>() - 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 - } |