summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Vrátil <[email protected]>2015-07-27 17:17:48 +0200
committerDan Vrátil <[email protected]>2015-07-27 18:08:29 +0200
commitd1f1a44fb74c55000c3c950651b4ca21610a8f19 (patch)
treef3159c958a794f36c4032626cea9790166140e3e
parent9693190a692eecdb23ddc7863d70f5252f94129b (diff)
Remove dead code from TypePluginLoader
-rw-r--r--akonadi/src/core/typepluginloader.cpp33
1 files changed, 0 insertions, 33 deletions
diff --git a/akonadi/src/core/typepluginloader.cpp b/akonadi/src/core/typepluginloader.cpp
index 560b7a9..cb89fb2 100644
--- a/akonadi/src/core/typepluginloader.cpp
+++ b/akonadi/src/core/typepluginloader.cpp
@@ -121,11 +121,6 @@ private:
mutable QObject *mPlugin;
};
-static bool operator<(const QString &identifier, const PluginEntry &entry)
-{
- return identifier < entry.identifier();
-}
-
class MimeTypeEntry
{
public:
@@ -221,34 +216,6 @@ private:
mutable QMap<int, QHash<QByteArray, PluginEntry>::const_iterator> m_pluginsByMetaTypeId;
};
-static bool operator<(const MimeTypeEntry &lhs, const MimeTypeEntry &rhs)
-{
- return lhs.type() < rhs.type();
-}
-
-static bool operator<(const MimeTypeEntry &lhs, const QString &rhs)
-{
- return lhs.type() < rhs;
-}
-
-static bool operator<(const QString &lhs, const MimeTypeEntry &rhs)
-{
- return lhs < rhs.type();
-}
-
-static QString format(const QString &mimeType, const QVector<int> &metaTypeIds)
-{
- if (metaTypeIds.empty()) {
- return QStringLiteral("default for ") + mimeType;
- }
- QStringList classTypes;
- classTypes.reserve(metaTypeIds.count());
- Q_FOREACH (int metaTypeId, metaTypeIds) {
- classTypes.push_back(QString::fromLatin1(metaTypeId ? QMetaType::typeName(metaTypeId) : LEGACY_NAME));
- }
- return mimeType + QStringLiteral("@{") + classTypes.join(QStringLiteral(",")) + QLatin1Char('}');
-}
-
class PluginRegistry
{
public: