Skip to content

Commit

Permalink
Remove unnecessary constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Dec 3, 2019
1 parent a50f09c commit dc008fc
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
Expand Down

0 comments on commit dc008fc

Please sign in to comment.