Version control plugins: Remove defunct KServiceTypeTrader query for available plugins

We do not load those plugins anymore, consequently it does not make sense to find and display them in the settings
This commit is contained in:
Alexander Lohnau 2021-12-27 17:35:09 +01:00
parent f386f848de
commit e447b88296

View file

@ -338,18 +338,6 @@ void ContextMenuSettingsPage::loadVersionControlSystems()
loadedPlugins += pluginName;
}
const KService::List pluginServices = KServiceTypeTrader::self()->query(QStringLiteral("FileViewVersionControlPlugin"));
for (const auto &plugin : pluginServices) {
const QString pluginName = plugin->name();
if (loadedPlugins.contains(pluginName)) {
continue;
}
addRow(QStringLiteral("code-class"),
pluginName,
VersionControlServicePrefix + pluginName,
enabledPlugins.contains(pluginName));
}
m_sortModel->sort(Qt::DisplayRole);
}