summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2013-07-15 12:32:37 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2013-07-15 13:40:27 (GMT)
commitc11f297f9fcbbeedf889011f4e84475ebb1c6fbe (patch)
tree5139193d73ae75fb018dcadebd79f3b306c6fc9e
parente655baca684cfbd9e8efd067b856d1d4ac25300d (diff)
downloadlibkolab-c11f297f9fcbbeedf889011f4e84475ebb1c6fbe.tar.gz
Removed unused function.
-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
*