]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Version control plugins: Remove defunct KServiceTypeTrader query for available plugins
authorAlexander Lohnau <alexander.lohnau@gmx.de>
Mon, 27 Dec 2021 16:35:09 +0000 (17:35 +0100)
committerAlexander Lohnau <alexander.lohnau@gmx.de>
Sun, 2 Jan 2022 09:04:56 +0000 (10:04 +0100)
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

index cfbfefe52573d9d780ccab9d6a8a329ec75f39ce..a4e8225e2536c6a4aa46dfa8ca204370b86a3af3 100644 (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);
 }