diff --git a/mimetreeparser/src/objecttreeparser.h b/mimetreeparser/src/objecttreeparser.h --- a/mimetreeparser/src/objecttreeparser.h +++ b/mimetreeparser/src/objecttreeparser.h @@ -327,8 +327,6 @@ const QTextCodec *codecFor(KMime::Content *node) const; - void copyContentFrom(const ObjectTreeParser *other); - private: Interface::ObjectTreeSource *mSource; NodeHelper *mNodeHelper; diff --git a/mimetreeparser/src/objecttreeparser.cpp b/mimetreeparser/src/objecttreeparser.cpp --- a/mimetreeparser/src/objecttreeparser.cpp +++ b/mimetreeparser/src/objecttreeparser.cpp @@ -135,18 +135,6 @@ return mHtmlContent; } -void ObjectTreeParser::copyContentFrom(const ObjectTreeParser *other) -{ - mPlainTextContent += other->plainTextContent(); - mHtmlContent += other->htmlContent(); - if (!other->plainTextContentCharset().isEmpty()) { - mPlainTextContentCharset = other->plainTextContentCharset(); - } - if (!other->htmlContentCharset().isEmpty()) { - mHtmlContentCharset = other->htmlContentCharset(); - } -} - //----------------------------------------------------------------------------- void ObjectTreeParser::parseObjectTree(KMime::Content *node, bool parseOnlySingleNode)