Commit 9b181d2e authored by Laurent Montel's avatar Laurent Montel 😁

Clean up unused method

parent 81fee606
......@@ -72,16 +72,6 @@ bool HtmlStatusBar::isNormal() const
return mode() == MimeTreeParser::Util::Normal;
}
bool HtmlStatusBar::isMultipartHtml() const
{
return mode() == MimeTreeParser::Util::MultipartHtml;
}
bool HtmlStatusBar::isMultipartPlain() const
{
return mode() == MimeTreeParser::Util::MultipartPlain;
}
void HtmlStatusBar::update()
{
QPalette pal = palette();
......@@ -102,16 +92,6 @@ void HtmlStatusBar::setHtmlMode()
setMode(MimeTreeParser::Util::Html);
}
void HtmlStatusBar::setMultipartPlainMode()
{
setMode(MimeTreeParser::Util::MultipartPlain);
}
void HtmlStatusBar::setMultipartHtmlMode()
{
setMode(MimeTreeParser::Util::MultipartHtml);
}
void HtmlStatusBar::setAvailableModes(const QList<MimeTreeParser::Util::HtmlMode> &availableModes)
{
mAvailableModes = availableModes;
......
......@@ -70,14 +70,12 @@ public:
};
explicit HtmlStatusBar(QWidget *parent = nullptr);
~HtmlStatusBar();
~HtmlStatusBar() override;
/** @return current mode. */
MimeTreeParser::Util::HtmlMode mode() const;
bool isHtml() const;
bool isNormal() const;
bool isMultipartHtml() const;
bool isMultipartPlain() const;
// Update the status bar, for example when the color scheme changed.
void update();
......@@ -89,10 +87,6 @@ public Q_SLOTS:
void setHtmlMode();
/** Switch to "normal mode". */
void setNormalMode();
/** Switch to "multipart html mode". */
void setMultipartHtmlMode();
/** Switch to "multipart plain mode". */
void setMultipartPlainMode();
/** Switch to mode @p m */
void setMode(MimeTreeParser::Util::HtmlMode m, UpdateMode mode = Update);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment