diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Model/DocumentationNode.kt | 4 | ||||
-rw-r--r-- | src/Utilities/ServiceLocator.kt | 6 |
2 files changed, 1 insertions, 9 deletions
diff --git a/src/Model/DocumentationNode.kt b/src/Model/DocumentationNode.kt index b4343347..c3b9942d 100644 --- a/src/Model/DocumentationNode.kt +++ b/src/Model/DocumentationNode.kt @@ -114,9 +114,7 @@ public open class DocumentationNode(val name: String, val DocumentationNode.path: List<DocumentationNode> get() { - val parent = owner - if (parent == null) - return listOf(this) + val parent = owner ?: return listOf(this) return parent.path + this } diff --git a/src/Utilities/ServiceLocator.kt b/src/Utilities/ServiceLocator.kt index e2ed0499..b3610a53 100644 --- a/src/Utilities/ServiceLocator.kt +++ b/src/Utilities/ServiceLocator.kt @@ -89,12 +89,6 @@ public inline fun <reified T : Any> ServiceLocator.lookupOrNull(category: String null } -fun main(args: Array<String>) { - ServiceLocator.allServices("format").forEach { - println(it) - } -} - private val ZipEntry.fileName: String get() = name.substringAfterLast("/", name) |