From 964f0003584a0b745045db75ca6184f54eddd859 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 4 Jun 2017 15:21:05 +0200 Subject: Rely on isAttachment to collect attachments --- framework/src/domain/mime/mimetreeparser/nodehelper.h | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'framework/src/domain/mime/mimetreeparser/nodehelper.h') diff --git a/framework/src/domain/mime/mimetreeparser/nodehelper.h b/framework/src/domain/mime/mimetreeparser/nodehelper.h index 2891f3bd..bf472413 100644 --- a/framework/src/domain/mime/mimetreeparser/nodehelper.h +++ b/framework/src/domain/mime/mimetreeparser/nodehelper.h @@ -76,11 +76,6 @@ public: /** Get the extra nodes attached to the @param topLevelNode and all sub-nodes of @param topLevelNode */ QList extraContents(KMime::Content *topLevelNode) const; - /** Return a modified message (node tree) starting from @param topLevelNode that has the original nodes and the extra nodes. - The caller has the responsibility to delete the new message. - */ - KMime::Message *messageWithExtraContent(KMime::Content *topLevelNode); - /** Get a QTextCodec suitable for this message part */ const QTextCodec *codec(KMime::Content *node); @@ -149,14 +144,6 @@ public: QString fromAsString(KMime::Content *node) const; - /** - * Returns a list of attachments of attached extra content nodes. - * This is mainly useful is order to get attachments of encrypted messages. - * Note that this does not include attachments from the primary node tree. - * @see KMime::Content::attachments(). - */ - QVector attachmentsOfExtraContents() const; - Q_SIGNALS: void update(MimeTreeParser::UpdateMode); @@ -165,9 +152,6 @@ private: bool unencryptedMessage_helper(KMime::Content *node, QByteArray &resultingData, bool addHeaders, int recursionLevel = 1); - void mergeExtraNodes(KMime::Content *node); - void cleanFromExtraNodes(KMime::Content *node); - /** Creates a persistent index string that bridges the gap between the permanent nodes and the temporary ones. -- cgit v1.2.3