summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/eglfs
diff options
context:
space:
mode:
authorAndy Nichols <andy.nichols@theqtcompany.com>2016-06-30 12:35:11 +0200
committerAndy Nichols <andy.nichols@qt.io>2016-06-30 10:53:56 +0000
commit6bdc549abebc8ca71be047c50f890f42e6ef347a (patch)
tree96f2f75bc76c1570105d6880ba0e611ce9457f13 /src/plugins/platforms/eglfs
parent699f9ecc205ca2b1857eb400887ba597c1101903 (diff)
Remove unused function loadIntegration from EGLFS
There was a leftover function for loading EGLFS device integrations from the time before device integrations were plugins. Change-Id: I88606d14f773f4cf9f68e0341044e8281ed86442 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io>
Diffstat (limited to 'src/plugins/platforms/eglfs')
-rw-r--r--src/plugins/platforms/eglfs/api/qeglfsdeviceintegration.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/plugins/platforms/eglfs/api/qeglfsdeviceintegration.cpp b/src/plugins/platforms/eglfs/api/qeglfsdeviceintegration.cpp
index a735f4dba4..c6aab9d86c 100644
--- a/src/plugins/platforms/eglfs/api/qeglfsdeviceintegration.cpp
+++ b/src/plugins/platforms/eglfs/api/qeglfsdeviceintegration.cpp
@@ -72,19 +72,6 @@ Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, directLoader,
(QEglFSDeviceIntegrationFactoryInterface_iid, QLatin1String(""), Qt::CaseInsensitive))
-static inline QEglFSDeviceIntegration *loadIntegration(QFactoryLoader *loader, const QString &key)
-{
- const int index = loader->indexOf(key);
- if (index != -1) {
- QObject *plugin = loader->instance(index);
- if (QEglFSDeviceIntegrationPlugin *factory = qobject_cast<QEglFSDeviceIntegrationPlugin *>(plugin)) {
- if (QEglFSDeviceIntegration *result = factory->create())
- return result;
- }
- }
- return Q_NULLPTR;
-}
-
#endif // QT_NO_LIBRARY
QStringList QEglFSDeviceIntegrationFactory::keys(const QString &pluginPath)