ExtensionSystem: Remove PluginSpec::isHiddenByDefault

Not used anymore.

Change-Id: Ic73ba3024b9e6157ff044cb23450fc9dad3c4c02
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
hjk
2020-06-10 11:59:11 +02:00
parent 7379a5ac52
commit 361b80cb9b
11 changed files with 0 additions and 31 deletions

View File

@@ -315,14 +315,6 @@ bool PluginSpec::isRequired() const
return d->required;
}
/*!
Returns whether the plugin is hidden by default.
*/
bool PluginSpec::isHiddenByDefault() const
{
return d->hiddenByDefault;
}
/*!
Returns whether the plugin has its experimental flag set.
*/
@@ -554,7 +546,6 @@ namespace {
const char PLUGIN_VERSION[] = "Version";
const char PLUGIN_COMPATVERSION[] = "CompatVersion";
const char PLUGIN_REQUIRED[] = "Required";
const char PLUGIN_HIDDEN_BY_DEFAULT[] = "HiddenByDefault";
const char PLUGIN_EXPERIMENTAL[] = "Experimental";
const char PLUGIN_DISABLED_BY_DEFAULT[] = "DisabledByDefault";
const char VENDOR[] = "Vendor";
@@ -744,12 +735,6 @@ bool PluginSpecPrivate::readMetaData(const QJsonObject &pluginMetaData)
required = value.toBool(false);
qCDebug(pluginLog) << "required =" << required;
value = metaData.value(QLatin1String(PLUGIN_HIDDEN_BY_DEFAULT));
if (!value.isUndefined() && !value.isBool())
return reportError(msgValueIsNotABool(PLUGIN_HIDDEN_BY_DEFAULT));
hiddenByDefault = value.toBool(false);
qCDebug(pluginLog) << "hiddenByDefault =" << hiddenByDefault;
value = metaData.value(QLatin1String(PLUGIN_EXPERIMENTAL));
if (!value.isUndefined() && !value.isBool())
return reportError(msgValueIsNotABool(PLUGIN_EXPERIMENTAL));