summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Volkov <a.volkov@rusbitech.ru>2016-11-10 14:12:01 (GMT)
committerAlexander Volkov <a.volkov@rusbitech.ru>2016-11-11 09:16:49 (GMT)
commit83fe59a86cceb94695ac85211b4ededb08bc5949 (patch)
tree82662edbf8098aa220e1c5251c2bc9e153aef767
parent2e6bc23b8846893a87fc7a0496efed25a945917e (diff)
downloadqtsvg-83fe59a86cceb94695ac85211b4ededb08bc5949.tar.gz
Remove unused methods from plugin classes5.7.1
Remove QIconEnginePlugin::keys() and QImageIOPlugin::keys(): they are not overriders since Qt 5.0. Change-Id: I9127b5b72c9c37b450c6f0d0095e47b8d5454322 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
-rw-r--r--src/plugins/iconengines/svgiconengine/main.cpp10
-rw-r--r--src/plugins/imageformats/svg/main.cpp6
2 files changed, 0 insertions, 16 deletions
diff --git a/src/plugins/iconengines/svgiconengine/main.cpp b/src/plugins/iconengines/svgiconengine/main.cpp
index ef1c8c1..8c3f8bb 100644
--- a/src/plugins/iconengines/svgiconengine/main.cpp
+++ b/src/plugins/iconengines/svgiconengine/main.cpp
@@ -54,19 +54,9 @@ class QSvgIconPlugin : public QIconEnginePlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QIconEngineFactoryInterface" FILE "qsvgiconengine.json")
public:
- QStringList keys() const;
QIconEngine *create(const QString &filename = QString()) override;
};
-QStringList QSvgIconPlugin::keys() const
-{
- QStringList keys(QLatin1String("svg"));
-#ifndef QT_NO_COMPRESS
- keys << QLatin1String("svgz") << QLatin1String("svg.gz");
-#endif
- return keys;
-}
-
QIconEngine *QSvgIconPlugin::create(const QString &file)
{
QSvgIconEngine *engine = new QSvgIconEngine;
diff --git a/src/plugins/imageformats/svg/main.cpp b/src/plugins/imageformats/svg/main.cpp
index a01398c..e92f25a 100644
--- a/src/plugins/imageformats/svg/main.cpp
+++ b/src/plugins/imageformats/svg/main.cpp
@@ -56,16 +56,10 @@ class QSvgPlugin : public QImageIOPlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "svg.json")
public:
- QStringList keys() const;
Capabilities capabilities(QIODevice *device, const QByteArray &format) const override;
QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const override;
};
-QStringList QSvgPlugin::keys() const
-{
- return QStringList() << QLatin1String("svg") << QLatin1String("svgz");
-}
-
QImageIOPlugin::Capabilities QSvgPlugin::capabilities(QIODevice *device, const QByteArray &format) const
{
if (format == "svg" || format == "svgz")