From 6bdc549abebc8ca71be047c50f890f42e6ef347a Mon Sep 17 00:00:00 2001 From: Andy Nichols Date: Thu, 30 Jun 2016 12:35:11 +0200 Subject: 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 --- src/plugins/platforms/eglfs/api/qeglfsdeviceintegration.cpp | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'src/plugins/platforms') 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(plugin)) { - if (QEglFSDeviceIntegration *result = factory->create()) - return result; - } - } - return Q_NULLPTR; -} - #endif // QT_NO_LIBRARY QStringList QEglFSDeviceIntegrationFactory::keys(const QString &pluginPath) -- cgit v1.2.3