From 77b5d028b30bafc579d7ea6ccb5955a40345da8e Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 26 Apr 2018 21:54:19 +0200 Subject: Removed empty formatter --- .../mime/mimetreeparser/bodypartformatter_impl.cpp | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/framework/src/domain/mime/mimetreeparser/bodypartformatter_impl.cpp b/framework/src/domain/mime/mimetreeparser/bodypartformatter_impl.cpp index a6713fef..3522a144 100644 --- a/framework/src/domain/mime/mimetreeparser/bodypartformatter_impl.cpp +++ b/framework/src/domain/mime/mimetreeparser/bodypartformatter_impl.cpp @@ -72,21 +72,6 @@ public: const AnyTypeBodyPartFormatter *AnyTypeBodyPartFormatter::self = nullptr; -class ImageTypeBodyPartFormatter : public MimeTreeParser::Interface::BodyPartFormatter -{ - static const ImageTypeBodyPartFormatter *self; -public: - static const MimeTreeParser::Interface::BodyPartFormatter *create() - { - if (!self) { - self = new ImageTypeBodyPartFormatter(); - } - return self; - } -}; - -const ImageTypeBodyPartFormatter *ImageTypeBodyPartFormatter::self = nullptr; - class MessageRfc822BodyPartFormatter : public MimeTreeParser::Interface::BodyPartFormatter { @@ -147,7 +132,7 @@ void BodyPartFormatterBaseFactoryPrivate::messageviewer_create_builtin_bodypart_ insert("text", "*", MailmanBodyPartFormatter::create()); insert("text", "*", TextPlainBodyPartFormatter::create()); - insert("image", "*", ImageTypeBodyPartFormatter::create()); + insert("image", "*", AnyTypeBodyPartFormatter::create()); insert("message", "rfc822", MessageRfc822BodyPartFormatter::create()); insert("message", "*", AnyTypeBodyPartFormatter::create()); -- cgit v1.2.3