From 30430b0fb3a20b9703f89ce93e55d5142468e7a1 Mon Sep 17 00:00:00 2001 From: Rasmus Karlsson Date: Thu, 2 May 2019 00:08:04 +0200 Subject: [PATCH] this ctor was used to create a system message we now only use the ctor that takes an explicit SystemMessageTag --- src/messages/MessageBuilder.cpp | 10 ---------- src/messages/MessageBuilder.hpp | 1 - 2 files changed, 11 deletions(-) diff --git a/src/messages/MessageBuilder.cpp b/src/messages/MessageBuilder.cpp index 7b4c64ae8..727305d68 100644 --- a/src/messages/MessageBuilder.cpp +++ b/src/messages/MessageBuilder.cpp @@ -91,16 +91,6 @@ MessageBuilder::MessageBuilder() { } -MessageBuilder::MessageBuilder(const QString &text) - : MessageBuilder() -{ - this->emplace(); - this->emplace(text, MessageElementFlag::Text, - MessageColor::System); - this->message().messageText = text; - this->message().searchText = text; -} - MessageBuilder::MessageBuilder(SystemMessageTag, const QString &text) : MessageBuilder() { diff --git a/src/messages/MessageBuilder.hpp b/src/messages/MessageBuilder.hpp index dbc58cbb7..4793ce9d9 100644 --- a/src/messages/MessageBuilder.hpp +++ b/src/messages/MessageBuilder.hpp @@ -38,7 +38,6 @@ class MessageBuilder { public: MessageBuilder(); - MessageBuilder(const QString &text); MessageBuilder(SystemMessageTag, const QString &text); MessageBuilder(TimeoutMessageTag, const QString &username, const QString &durationInSeconds, const QString &reason,