this ctor was used to create a system message

we now only use the ctor that takes an explicit SystemMessageTag
This commit is contained in:
Rasmus Karlsson 2019-05-02 00:08:04 +02:00 committed by pajlada
parent b5efe12f56
commit 30430b0fb3
2 changed files with 0 additions and 11 deletions

View file

@ -91,16 +91,6 @@ MessageBuilder::MessageBuilder()
{ {
} }
MessageBuilder::MessageBuilder(const QString &text)
: MessageBuilder()
{
this->emplace<TimestampElement>();
this->emplace<TextElement>(text, MessageElementFlag::Text,
MessageColor::System);
this->message().messageText = text;
this->message().searchText = text;
}
MessageBuilder::MessageBuilder(SystemMessageTag, const QString &text) MessageBuilder::MessageBuilder(SystemMessageTag, const QString &text)
: MessageBuilder() : MessageBuilder()
{ {

View file

@ -38,7 +38,6 @@ class MessageBuilder
{ {
public: public:
MessageBuilder(); MessageBuilder();
MessageBuilder(const QString &text);
MessageBuilder(SystemMessageTag, const QString &text); MessageBuilder(SystemMessageTag, const QString &text);
MessageBuilder(TimeoutMessageTag, const QString &username, MessageBuilder(TimeoutMessageTag, const QString &username,
const QString &durationInSeconds, const QString &reason, const QString &durationInSeconds, const QString &reason,