From dc008fc925303012040f06f70426ed1a39e7a343 Mon Sep 17 00:00:00 2001 From: Him188 Date: Tue, 3 Dec 2019 12:49:46 +0800 Subject: [PATCH] Remove unnecessary constructors --- .../commonMain/kotlin/net.mamoe.mirai/message/MessageChain.kt | 3 --- 1 file changed, 3 deletions(-) diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/MessageChain.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/MessageChain.kt index 5172ecb59..247225687 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/MessageChain.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/MessageChain.kt @@ -288,11 +288,8 @@ internal inline class MessageChainImpl constructor( private val delegate: MutableList ) : Message, MutableList, MessageChain { - //constructor() : this(ArrayList(8)) - constructor(initialCapacity: Int) : this(ArrayList(initialCapacity)) constructor(vararg messages: Message) : this(messages.toMutableList()) - constructor(messages: Iterable) : this(messages.toMutableList()) // region Message override override val stringValue: String get() = this.delegate.joinToString("") { it.stringValue }