Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit e50776e2 authored by Volker Krause's avatar Volker Krause

Remove no longer used format() implementations

This has been replaced by the new rendering code some time ago already.
parent d20fa0ec
......@@ -29,7 +29,6 @@ class ApplicationPGPEncryptedBodyPartFormatter : public Interface::BodyPartForma
static const ApplicationPGPEncryptedBodyPartFormatter *self;
public:
Interface::MessagePart::Ptr process(Interface::BodyPart &part) const override;
using Interface::BodyPartFormatter::format;
static const Interface::BodyPartFormatter *create();
};
}
......
......@@ -29,7 +29,6 @@ class ApplicationPkcs7MimeBodyPartFormatter : public Interface::BodyPartFormatte
static const ApplicationPkcs7MimeBodyPartFormatter *self;
public:
Interface::MessagePart::Ptr process(Interface::BodyPart &part) const override;
using Interface::BodyPartFormatter::format;
static const Interface::BodyPartFormatter *create();
};
}
......
......@@ -29,7 +29,6 @@ class MailmanBodyPartFormatter : public Interface::BodyPartFormatter
static const MailmanBodyPartFormatter *self;
public:
Interface::MessagePart::Ptr process(Interface::BodyPart &part) const override;
using Interface::BodyPartFormatter::format;
static const Interface::BodyPartFormatter *create();
private:
......
......@@ -29,7 +29,6 @@ class MultiPartAlternativeBodyPartFormatter : public Interface::BodyPartFormatte
static const MultiPartAlternativeBodyPartFormatter *self;
public:
Interface::MessagePart::Ptr process(Interface::BodyPart &part) const override;
using Interface::BodyPartFormatter::format;
static const Interface::BodyPartFormatter *create();
};
}
......
......@@ -42,18 +42,6 @@ const Interface::BodyPartFormatter *MultiPartEncryptedBodyPartFormatter::create(
return self;
}
Interface::BodyPartFormatter::Result MultiPartEncryptedBodyPartFormatter::format(Interface::BodyPart *part, HtmlWriter *writer) const
{
Q_UNUSED(writer)
const auto p = process(*part);
const auto mp = static_cast<MessagePart *>(p.data());
if (mp) {
mp->html(false);
return Ok;
}
return Failed;
}
Interface::MessagePart::Ptr MultiPartEncryptedBodyPartFormatter::process(Interface::BodyPart &part) const
{
KMime::Content *node = part.content();
......
......@@ -29,8 +29,6 @@ class MultiPartEncryptedBodyPartFormatter : public Interface::BodyPartFormatter
static const MultiPartEncryptedBodyPartFormatter *self;
public:
Interface::MessagePart::Ptr process(Interface::BodyPart &part) const override;
Interface::BodyPartFormatter::Result format(Interface::BodyPart *, HtmlWriter *) const override;
using Interface::BodyPartFormatter::format;
static const Interface::BodyPartFormatter *create();
};
}
......
......@@ -38,18 +38,6 @@ const Interface::BodyPartFormatter *MultiPartMixedBodyPartFormatter::create()
return self;
}
Interface::BodyPartFormatter::Result MultiPartMixedBodyPartFormatter::format(Interface::BodyPart *part, HtmlWriter *writer) const
{
Q_UNUSED(writer)
const auto p = process(*part);
const auto mp = static_cast<MessagePart *>(p.data());
if (mp) {
mp->html(false);
return Ok;
}
return Failed;
}
Interface::MessagePart::Ptr MultiPartMixedBodyPartFormatter::process(Interface::BodyPart &part) const
{
if (part.content()->contents().isEmpty()) {
......
......@@ -29,8 +29,6 @@ class MultiPartMixedBodyPartFormatter : public Interface::BodyPartFormatter
static const MultiPartMixedBodyPartFormatter *self;
public:
Interface::MessagePart::Ptr process(Interface::BodyPart &part) const override;
Interface::BodyPartFormatter::Result format(Interface::BodyPart *, HtmlWriter *) const override;
using Interface::BodyPartFormatter::format;
static const Interface::BodyPartFormatter *create();
};
}
......
......@@ -42,18 +42,6 @@ const Interface::BodyPartFormatter *MultiPartSignedBodyPartFormatter::create()
return self;
}
Interface::BodyPartFormatter::Result MultiPartSignedBodyPartFormatter::format(Interface::BodyPart *part, HtmlWriter *writer) const
{
Q_UNUSED(writer)
const auto p = process(*part);
const auto mp = static_cast<MessagePart *>(p.data());
if (mp) {
mp->html(false);
return Ok;
}
return Failed;
}
Interface::MessagePart::Ptr MultiPartSignedBodyPartFormatter::process(Interface::BodyPart &part) const
{
KMime::Content *node = part.content();
......
......@@ -29,8 +29,6 @@ class MultiPartSignedBodyPartFormatter : public Interface::BodyPartFormatter
static const MultiPartSignedBodyPartFormatter *self;
public:
Interface::MessagePart::Ptr process(Interface::BodyPart &part) const override;
Interface::BodyPartFormatter::Result format(Interface::BodyPart *, HtmlWriter *) const override;
using Interface::BodyPartFormatter::format;
static const Interface::BodyPartFormatter *create();
};
}
......
......@@ -39,18 +39,6 @@ const Interface::BodyPartFormatter *TextHtmlBodyPartFormatter::create()
return self;
}
Interface::BodyPartFormatter::Result TextHtmlBodyPartFormatter::format(Interface::BodyPart *part, HtmlWriter *writer) const
{
Q_UNUSED(writer)
const auto p = process(*part);
const auto mp = static_cast<MessagePart *>(p.data());
if (mp) {
mp->html(false);
return Ok;
}
return Failed;
}
Interface::MessagePart::Ptr TextHtmlBodyPartFormatter::process(Interface::BodyPart &part) const
{
KMime::Content *node = part.content();
......
......@@ -29,8 +29,6 @@ class TextHtmlBodyPartFormatter : public Interface::BodyPartFormatter
static const TextHtmlBodyPartFormatter *self;
public:
Interface::MessagePart::Ptr process(Interface::BodyPart &part) const override;
Interface::BodyPartFormatter::Result format(Interface::BodyPart *, HtmlWriter *) const override;
using Interface::BodyPartFormatter::format;
static const Interface::BodyPartFormatter *create();
};
}
......
......@@ -39,18 +39,6 @@ const Interface::BodyPartFormatter *TextPlainBodyPartFormatter::create()
return self;
}
Interface::BodyPartFormatter::Result TextPlainBodyPartFormatter::format(Interface::BodyPart *part, HtmlWriter *writer) const
{
Q_UNUSED(writer)
const auto p = process(*part);
const auto mp = static_cast<MessagePart *>(p.data());
if (mp) {
mp->html(false);
return Ok;
}
return Failed;
}
Interface::MessagePart::Ptr TextPlainBodyPartFormatter::process(Interface::BodyPart &part) const
{
KMime::Content *node = part.content();
......
......@@ -29,8 +29,6 @@ class TextPlainBodyPartFormatter : public Interface::BodyPartFormatter
static const TextPlainBodyPartFormatter *self;
public:
Interface::MessagePart::Ptr process(Interface::BodyPart &part) const override;
Interface::BodyPartFormatter::Result format(Interface::BodyPart *, HtmlWriter *) const override;
using Interface::BodyPartFormatter::format;
static const Interface::BodyPartFormatter *create();
};
}
......
......@@ -63,12 +63,6 @@ class AnyTypeBodyPartFormatter : public MimeTreeParser::Interface::BodyPartForma
{
static const AnyTypeBodyPartFormatter *self;
public:
Result format(Interface::BodyPart *, HtmlWriter *) const override
{
qCDebug(MIMETREEPARSER_LOG) << "Acting as a Interface::BodyPartFormatter!";
return AsIcon;
}
Interface::MessagePart::Ptr process(Interface::BodyPart &part) const override
{
KMime::Content *node = part.content();
......@@ -96,11 +90,6 @@ class ImageTypeBodyPartFormatter : public MimeTreeParser::Interface::BodyPartFor
{
static const ImageTypeBodyPartFormatter *self;
public:
Result format(Interface::BodyPart *, HtmlWriter *) const override
{
return AsIcon;
}
static const MimeTreeParser::Interface::BodyPartFormatter *create()
{
if (!self) {
......@@ -148,8 +137,6 @@ class MessageRfc822BodyPartFormatter : public MimeTreeParser::Interface::BodyPar
static const MessageRfc822BodyPartFormatter *self;
public:
Interface::MessagePart::Ptr process(Interface::BodyPart &) const override;
MimeTreeParser::Interface::BodyPartFormatter::Result format(Interface::BodyPart *, HtmlWriter *) const override;
using MimeTreeParser::Interface::BodyPartFormatter::format;
static const MimeTreeParser::Interface::BodyPartFormatter *create();
};
......@@ -169,25 +156,6 @@ Interface::MessagePart::Ptr MessageRfc822BodyPartFormatter::process(Interface::B
return MessagePart::Ptr(new EncapsulatedRfc822MessagePart(part.objectTreeParser(), part.content(), message));
}
Interface::BodyPartFormatter::Result MessageRfc822BodyPartFormatter::format(Interface::BodyPart *part, HtmlWriter *writer) const
{
Q_UNUSED(writer)
const ObjectTreeParser *otp = part->objectTreeParser();
const auto p = process(*part);
const auto mp = static_cast<MessagePart *>(p.data());
if (mp) {
if (!otp->attachmentStrategy()->inlineNestedMessages() && !otp->showOnlyOneMimePart()) {
return Failed;
} else {
mp->html(true);
return Ok;
}
} else {
return Failed;
}
}
typedef TextPlainBodyPartFormatter ApplicationPgpBodyPartFormatter;
} // anon namespace
void BodyPartFormatterBaseFactoryPrivate::messageviewer_create_builtin_bodypart_formatters()
......
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