aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt
diff options
context:
space:
mode:
authorDmitry Jemerov <yole@jetbrains.com>2016-01-08 18:18:17 +0100
committerDmitry Jemerov <yole@jetbrains.com>2016-01-08 18:18:17 +0100
commit340816d48532786ff7de481e84a890273bfd1e9a (patch)
tree449998b41704eab19e288425f2b91c7325602176 /core/src/main/kotlin/Kotlin/DocumentationBuilder.kt
parent931a37df263768f0642b8bd41192e7caf0701ff7 (diff)
downloaddokka-340816d48532786ff7de481e84a890273bfd1e9a.tar.gz
dokka-340816d48532786ff7de481e84a890273bfd1e9a.tar.bz2
dokka-340816d48532786ff7de481e84a890273bfd1e9a.zip
delete a bit of dead code
Diffstat (limited to 'core/src/main/kotlin/Kotlin/DocumentationBuilder.kt')
-rw-r--r--core/src/main/kotlin/Kotlin/DocumentationBuilder.kt7
1 files changed, 0 insertions, 7 deletions
diff --git a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt
index aaaffd6f..4c7c75b4 100644
--- a/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt
+++ b/core/src/main/kotlin/Kotlin/DocumentationBuilder.kt
@@ -19,9 +19,7 @@ import org.jetbrains.kotlin.name.FqName
import org.jetbrains.kotlin.psi.KtModifierListOwner
import org.jetbrains.kotlin.psi.KtParameter
import org.jetbrains.kotlin.resolve.DescriptorUtils
-import org.jetbrains.kotlin.resolve.constants.CompileTimeConstant
import org.jetbrains.kotlin.resolve.constants.ConstantValue
-import org.jetbrains.kotlin.resolve.constants.TypedCompileTimeConstant
import org.jetbrains.kotlin.resolve.descriptorUtil.builtIns
import org.jetbrains.kotlin.resolve.descriptorUtil.fqNameSafe
import org.jetbrains.kotlin.resolve.descriptorUtil.isDocumentedAnnotation
@@ -579,11 +577,6 @@ class DocumentationBuilder
return node
}
- fun CompileTimeConstant<Any?>.build(): DocumentationNode? = when (this) {
- is TypedCompileTimeConstant -> constantValue.toDocumentationNode()
- else -> null
- }
-
fun ConstantValue<*>.toDocumentationNode(): DocumentationNode? = value?.let { value ->
when (value) {
is String ->