diff options
author | Zubakov <aleks.zubakov@gmail.com> | 2018-08-27 21:35:29 +0300 |
---|---|---|
committer | Zubakov <aleks.zubakov@gmail.com> | 2018-09-06 19:38:51 +0300 |
commit | a4ae451279b4f89b9994d333c6d6d88a0868c5e4 (patch) | |
tree | f052501c47a6d00641395983eae66dd43109a366 /core/src/main | |
parent | 6034c10de4f208484485e6a53daa48cf11800ef5 (diff) | |
download | dokka-a4ae451279b4f89b9994d333c6d6d88a0868c5e4.tar.gz dokka-a4ae451279b4f89b9994d333c6d6d88a0868c5e4.tar.bz2 dokka-a4ae451279b4f89b9994d333c6d6d88a0868c5e4.zip |
Drop unnecessary properties in SourceRoot
Diffstat (limited to 'core/src/main')
-rw-r--r-- | core/src/main/kotlin/Generation/configurationImpl.kt | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/core/src/main/kotlin/Generation/configurationImpl.kt b/core/src/main/kotlin/Generation/configurationImpl.kt index f2a91002..2aa0e0d7 100644 --- a/core/src/main/kotlin/Generation/configurationImpl.kt +++ b/core/src/main/kotlin/Generation/configurationImpl.kt @@ -18,22 +18,11 @@ data class SourceLinkDefinitionImpl(override val path: String, } } -class SourceRootImpl(path: String, override val platforms: List<String> = emptyList(), - override val analysisPlatform: Platform = Platform.DEFAULT) : SourceRoot { +class SourceRootImpl(path: String) : SourceRoot { override val path: String = File(path).absolutePath companion object { - fun parseSourceRoot(sourceRoot: String): SourceRoot { - val components = sourceRoot.split("::", limit = 2) - - val platform = if (components.size == 1) { - Platform.DEFAULT - } else { - Platform.fromString(components[0]) - } - - return SourceRootImpl(components.last(), emptyList(), platform) - } + fun parseSourceRoot(sourceRoot: String): SourceRoot = SourceRootImpl(sourceRoot) } } |