Revert "ExtensionSystem: Improve warnings"

This reverts commit f5e9ae47b3.

Reason for revert: Missing previous commit

Change-Id: Ia02f3b3e428eeb192c8d111111bfbd6218db79ea
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-08-29 11:26:32 +00:00
parent 842776fb62
commit 54b7ba9060

View File

@@ -1410,15 +1410,7 @@ void PluginManagerPrivate::loadPlugins()
void PluginManagerPrivate::loadPluginsAtRuntime(const QSet<PluginSpec *> &plugins)
{
const bool allSoftloadable = allOf(plugins, &PluginSpec::isSoftLoadable);
if (!allSoftloadable) {
const QStringList notSoftLoadablePlugins = Utils::transform<QStringList>(
Utils::filtered(plugins, std::not_fn(&PluginSpec::isSoftLoadable)),
&PluginSpec::displayName);
qWarning().noquote()
<< "PluginManagerPrivate::loadPluginsAtRuntime(): trying to load non-softloadable"
<< "plugin(s):" << notSoftLoadablePlugins.join(", ");
}
QTC_CHECK(allOf(plugins, [](PluginSpec *spec) { return spec->isSoftLoadable(); }));
// load the plugins and their dependencies (if possible) ordered by dependency
const QList<PluginSpec *> queue = filtered(loadQueue(), [&plugins](PluginSpec *spec) {