aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorSzymon Świstun <sswistun@virtuslab.com>2020-02-27 16:35:07 +0100
committerKamil Doległo <kamilok1965@interia.pl>2020-02-28 16:38:33 +0100
commit00993eec4ffa5f197b6d2a2c76c30626d9b1c419 (patch)
treea4cd0859a68f7998c3cdd7e941aba725b560d792 /core
parentcacf1e0c6cda4e42fe6581946cad53a377c71ec7 (diff)
downloaddokka-00993eec4ffa5f197b6d2a2c76c30626d9b1c419.tar.gz
dokka-00993eec4ffa5f197b6d2a2c76c30626d9b1c419.tar.bz2
dokka-00993eec4ffa5f197b6d2a2c76c30626d9b1c419.zip
Remove the duplication of companion objects in the model
Diffstat (limited to 'core')
-rw-r--r--core/src/main/kotlin/model/Documentable.kt4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/src/main/kotlin/model/Documentable.kt b/core/src/main/kotlin/model/Documentable.kt
index 778d1458..3bc1690b 100644
--- a/core/src/main/kotlin/model/Documentable.kt
+++ b/core/src/main/kotlin/model/Documentable.kt
@@ -155,7 +155,7 @@ data class Class(
WithExtraProperties<Class> {
override val children: List<Documentable>
- get() = (functions + properties + classlikes + listOfNotNull(companion) + constructors) as List<Documentable>
+ get() = (functions + properties + classlikes + constructors) as List<Documentable>
override fun withNewExtras(newExtras: PropertyContainer<Class>) = copy(extra = newExtras)
}
@@ -235,7 +235,7 @@ data class Interface(
override val extra: PropertyContainer<Interface> = PropertyContainer.empty()
) : Classlike(), WithCompanion, WithGenerics, WithSupertypes, WithExtraProperties<Interface> {
override val children: List<Documentable>
- get() = (functions + properties + classlikes + listOfNotNull(companion)) as List<Documentable>
+ get() = (functions + properties + classlikes) as List<Documentable>
override fun withNewExtras(newExtras: PropertyContainer<Interface>) = copy(extra = newExtras)
}