summaryrefslogtreecommitdiff
path: root/src/corelib/plugin/qpluginloader.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/plugin/qpluginloader.cpp')
-rw-r--r--src/corelib/plugin/qpluginloader.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/corelib/plugin/qpluginloader.cpp b/src/corelib/plugin/qpluginloader.cpp
index b8de3690d9..ef8ad108cb 100644
--- a/src/corelib/plugin/qpluginloader.cpp
+++ b/src/corelib/plugin/qpluginloader.cpp
@@ -482,13 +482,7 @@ QList<QStaticPlugin> QPluginLoader::staticPlugins()
*/
QJsonObject QStaticPlugin::metaData() const
{
-#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
- // the data is already loaded, so this doesn't matter
- qsizetype rawMetaDataSize = INT_MAX;
- const char *ptr = rawMetaData();
-#else
auto ptr = static_cast<const char *>(rawMetaData);
-#endif
QString errMsg;
QJsonDocument doc = qJsonFromRawLibraryMetaData(ptr, rawMetaDataSize, &errMsg);