summaryrefslogtreecommitdiffstats
path: root/src/corelib/plugin/qlibrary.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/plugin/qlibrary.cpp')
-rw-r--r--src/corelib/plugin/qlibrary.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/corelib/plugin/qlibrary.cpp b/src/corelib/plugin/qlibrary.cpp
index 9ea8e2793c..cd9f9e2546 100644
--- a/src/corelib/plugin/qlibrary.cpp
+++ b/src/corelib/plugin/qlibrary.cpp
@@ -714,17 +714,10 @@ bool QLibrary::isLibrary(const QString &fileName)
static bool qt_get_metadata(QLibraryPrivate *priv, QString *errMsg)
{
-#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
- auto getMetaData = [](QFunctionPointer fptr) {
- auto f = reinterpret_cast<const char * (*)()>(fptr);
- return qMakePair<const char *, size_t>(f(), INT_MAX);
- };
-#else
auto getMetaData = [](QFunctionPointer fptr) {
auto f = reinterpret_cast<QPluginMetaData (*)()>(fptr);
return f();
};
-#endif
QFunctionPointer pfn = priv->resolve("qt_plugin_query_metadata");
if (!pfn)