diff options
-rw-r--r-- | src/Model/DocumentationModule.kt | 11 | ||||
-rw-r--r-- | src/Model/DocumentationNode.kt | 4 |
2 files changed, 4 insertions, 11 deletions
diff --git a/src/Model/DocumentationModule.kt b/src/Model/DocumentationModule.kt deleted file mode 100644 index e74c544b..00000000 --- a/src/Model/DocumentationModule.kt +++ /dev/null @@ -1,11 +0,0 @@ -package org.jetbrains.dokka - -public class DocumentationModule(name: String, content: Content = Content.Empty) : DocumentationNode(name, content, DocumentationNode.Kind.Module) { - fun merge(other: DocumentationModule): DocumentationModule { - val model = DocumentationModule(name) - model.addAllReferencesFrom(other) - model.addAllReferencesFrom(this) - return model - } -} - diff --git a/src/Model/DocumentationNode.kt b/src/Model/DocumentationNode.kt index 6f6cee7e..468cb878 100644 --- a/src/Model/DocumentationNode.kt +++ b/src/Model/DocumentationNode.kt @@ -117,6 +117,10 @@ public open class DocumentationNode(val name: String, } +public class DocumentationModule(name: String, content: Content = Content.Empty) + : DocumentationNode(name, content, DocumentationNode.Kind.Module) { +} + val DocumentationNode.path: List<DocumentationNode> get() { val parent = owner |