aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <dvratil@kde.org>2016-09-08 10:35:09 (GMT)
committerDaniel Vrátil <dvratil@kde.org>2016-09-08 10:35:09 (GMT)
commit0d5bcf350ed0a5d0b6248493a24172c0fbfbedb4 (patch)
treebcbefce77984280626834020f802df3d9a1797fa
parent99dc67b1134285abe32932e5f01f50ad0bca880e (diff)
DataStore: remove unused appendMimeType() method
-rw-r--r--autotests/server/fakedatastore.cpp8
-rw-r--r--autotests/server/fakedatastore.h2
-rw-r--r--src/server/storage/datastore.cpp13
-rw-r--r--src/server/storage/datastore.h3
4 files changed, 0 insertions, 26 deletions
diff --git a/autotests/server/fakedatastore.cpp b/autotests/server/fakedatastore.cpp
index 9695730..264bc52 100644
--- a/autotests/server/fakedatastore.cpp
+++ b/autotests/server/fakedatastore.cpp
@@ -232,14 +232,6 @@ void FakeDataStore::activeCachePolicy(Collection &col)
return DataStore::activeCachePolicy(col);
}
-bool FakeDataStore::appendMimeType(const QString &mimetype,
- qint64 *insertId)
-{
- mChanges.insert(QStringLiteral("appendMimeType"),
- QVariantList() << mimetype);
- return DataStore::appendMimeType(mimetype, insertId);
-}
-
bool FakeDataStore::appendPimItem(QVector<Part> &parts,
const MimeType &mimetype,
const Collection &collection,
diff --git a/autotests/server/fakedatastore.h b/autotests/server/fakedatastore.h
index 11a6eb1..2dabe91 100644
--- a/autotests/server/fakedatastore.h
+++ b/autotests/server/fakedatastore.h
@@ -90,8 +90,6 @@ public:
virtual void activeCachePolicy(Collection &col) Q_DECL_OVERRIDE;
- virtual bool appendMimeType(const QString &mimetype,
- qint64 *insertId = Q_NULLPTR) Q_DECL_OVERRIDE;
virtual bool appendPimItem(QVector<Part> &parts,
const MimeType &mimetype,
const Collection &collection,
diff --git a/src/server/storage/datastore.cpp b/src/server/storage/datastore.cpp
index 80384d4..104bee4 100644
--- a/src/server/storage/datastore.cpp
+++ b/src/server/storage/datastore.cpp
@@ -1029,19 +1029,6 @@ QMap<Entity::Id, QList<PimItem> > DataStore::virtualCollections(const PimItem::L
return map;
}
-/* --- MimeType ------------------------------------------------------ */
-bool DataStore::appendMimeType(const QString &mimetype, qint64 *insertId)
-{
- if (MimeType::exists(mimetype)) {
- qCDebug(AKONADISERVER_LOG) << "Cannot insert mimetype " << mimetype
- << " because it already exists.";
- return false;
- }
-
- MimeType mt(mimetype);
- return mt.insert(insertId);
-}
-
/* --- PimItem ------------------------------------------------------- */
bool DataStore::appendPimItem(QVector<Part> &parts,
const MimeType &mimetype,
diff --git a/src/server/storage/datastore.h b/src/server/storage/datastore.h
index 5b6c56b..f8594c5 100644
--- a/src/server/storage/datastore.h
+++ b/src/server/storage/datastore.h
@@ -176,9 +176,6 @@ public:
QMap< Server::Entity::Id, QList< PimItem > > virtualCollections(const Akonadi::Server::PimItem::List &items);
- /* --- MimeType ------------------------------------------------------ */
- virtual bool appendMimeType(const QString &mimetype, qint64 *insertId = 0);
-
/* --- PimItem ------------------------------------------------------- */
virtual bool appendPimItem(QVector<Part> &parts,
const MimeType &mimetype,