Remove unnecessary constructors

This commit is contained in:
Him188 2019-12-03 12:49:46 +08:00
parent a50f09cbe1
commit dc008fc925

View File

@ -288,11 +288,8 @@ internal inline class MessageChainImpl constructor(
private val delegate: MutableList<Message>
) : Message, MutableList<Message>,
MessageChain {
//constructor() : this(ArrayList(8))
constructor(initialCapacity: Int) : this(ArrayList(initialCapacity))
constructor(vararg messages: Message) : this(messages.toMutableList())
constructor(messages: Iterable<Message>) : this(messages.toMutableList())
// region Message override
override val stringValue: String get() = this.delegate.joinToString("") { it.stringValue }