summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mime/mimeutils.cpp12
-rw-r--r--mime/mimeutils.h2
2 files changed, 0 insertions, 14 deletions
diff --git a/mime/mimeutils.cpp b/mime/mimeutils.cpp
index 2ce6475..e259773 100644
--- a/mime/mimeutils.cpp
+++ b/mime/mimeutils.cpp
@@ -85,18 +85,6 @@ QList<QByteArray> getContentMimeTypeList(const KMime::Message::Ptr& data)
return typeList;
}
-
-
-QByteArray getXmlDocument(const KMime::Message::Ptr &data, const QByteArray &mimetype)
-{
- if ( KMime::Content *xmlContent = findContentByType( data, mimetype ) ) {
- return xmlContent->decodedContent();
- }
- Error() << "document not found";
- return QByteArray();
-}
-
-
QString fromCid(const QString &cid)
{
if (cid.left(4) != QString::fromLatin1("cid:")) { //Don't set if not a cid, happens when serializing format v2
diff --git a/mime/mimeutils.h b/mime/mimeutils.h
index 9d42ac4..c3053a9 100644
--- a/mime/mimeutils.h
+++ b/mime/mimeutils.h
@@ -33,8 +33,6 @@ KMime::Content* findContentByName(const KMime::Message::Ptr &data, const QString
KMime::Content* findContentByType(const KMime::Message::Ptr &data, const QByteArray &type);
QList<QByteArray> getContentMimeTypeList(const KMime::Message::Ptr &data);
-QByteArray getXmlDocument(const KMime::Message::Ptr &data, const QByteArray &mimetype);
-
/**
* Get Attachments from a Mime message
*