Commit caaa463a authored by Alexander Volkov's avatar Alexander Volkov
Browse files

Remove unused former overriders


QImageIOPlugin::keys() was removed in Qt 5.0 by
c9d040c1f5b0ee0ddd37e924576ec3bbd990f2ed in qtbase.

Change-Id: Ifda96e4764aa82d6f608d9ee2e29bac554603705
Reviewed-by: default avatarEirik Aavitsland <eirik.aavitsland@qt.io>
Showing with 0 additions and 36 deletions
......@@ -56,16 +56,10 @@ class QJp2Plugin : public QImageIOPlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "jp2.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 QJp2Plugin::keys() const
{
return QStringList() << QLatin1String("jp2") << QLatin1String("j2k");
}
QImageIOPlugin::Capabilities QJp2Plugin::capabilities(QIODevice *device, const QByteArray &format) const
{
if (format == "jp2" || format == "j2k")
......
......@@ -49,16 +49,10 @@ class QMacJp2Plugin : public QImageIOPlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "macjp2.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 QMacJp2Plugin::keys() const
{
return QStringList() << QStringLiteral("jp2");
}
QImageIOPlugin::Capabilities QMacJp2Plugin::capabilities(QIODevice *device, const QByteArray &format) const
{
if (format == "jp2")
......
......@@ -58,16 +58,10 @@ class QMngPlugin : public QImageIOPlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "mng.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 QMngPlugin::keys() const
{
return QStringList() << QLatin1String("mng");
}
QImageIOPlugin::Capabilities QMngPlugin::capabilities(QIODevice *device, const QByteArray &format) const
{
if (format == "mng")
......
......@@ -58,7 +58,6 @@ class QTgaPlugin : public QImageIOPlugin
public:
Capabilities capabilities(QIODevice * device, const QByteArray & format) const override;
QImageIOHandler * create(QIODevice * device, const QByteArray & format = QByteArray()) const override;
QStringList keys() const;
};
QImageIOPlugin::Capabilities QTgaPlugin::capabilities(QIODevice *device, const QByteArray &format) const
......@@ -84,11 +83,6 @@ QImageIOHandler* QTgaPlugin::create(QIODevice *device, const QByteArray &format)
return tgaHandler;
}
QStringList QTgaPlugin::keys() const
{
return QStringList() << QLatin1String("tga");
}
QT_END_NAMESPACE
#include "main.moc"
......
......@@ -57,7 +57,6 @@ class QTiffPlugin : public QImageIOPlugin
public:
Capabilities capabilities(QIODevice * device, const QByteArray & format) const override;
QImageIOHandler * create(QIODevice * device, const QByteArray & format = QByteArray()) const override;
QStringList keys() const;
};
QImageIOPlugin::Capabilities QTiffPlugin::capabilities(QIODevice *device, const QByteArray &format) const
......@@ -85,11 +84,6 @@ QImageIOHandler* QTiffPlugin::create(QIODevice *device, const QByteArray &format
return tiffHandler;
}
QStringList QTiffPlugin::keys() const
{
return QStringList() << QLatin1String("tiff") << QLatin1String("tif");
}
QT_END_NAMESPACE
#include "main.moc"
......
......@@ -55,7 +55,6 @@ class QWbmpPlugin : public QImageIOPlugin
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QImageIOHandlerFactoryInterface" FILE "wbmp.json")
public:
QStringList keys() const;
QImageIOPlugin::Capabilities capabilities(QIODevice *device, const QByteArray &format) const override;
QImageIOHandler *create(QIODevice *device, const QByteArray &format = QByteArray()) const override;
};
......@@ -89,11 +88,6 @@ QImageIOHandler * QWbmpPlugin::create(QIODevice *device, const QByteArray &forma
return handler;
}
QStringList QWbmpPlugin::keys() const
{
return QStringList() << QLatin1String("wbmp");
}
QT_END_NAMESPACE
#include "main.moc"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment