mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 01:30:17 +08:00
Remove unnecessary constructors
This commit is contained in:
parent
a50f09cbe1
commit
dc008fc925
@ -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 }
|
||||
|
Loading…
Reference in New Issue
Block a user