From e447b8829663cd31b3a460bad5ec5b0ac9c86eae Mon Sep 17 00:00:00 2001 From: Alexander Lohnau Date: Mon, 27 Dec 2021 17:35:09 +0100 Subject: [PATCH] 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 --- src/settings/contextmenu/contextmenusettingspage.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/settings/contextmenu/contextmenusettingspage.cpp b/src/settings/contextmenu/contextmenusettingspage.cpp index cfbfefe52..a4e8225e2 100644 --- a/src/settings/contextmenu/contextmenusettingspage.cpp +++ b/src/settings/contextmenu/contextmenusettingspage.cpp @@ -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); } -- 2.47.3