[plasma/union] src: Drop defaultInputPlugin() from PlatformPlugin
Arjen Hiemstra <[email protected]> Wed, 5 Aug 2026 10:33:24 +0000 (UTC)
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit def72cc1c33cc919eaa44de6c37a9da3fe9a2319 by Arjen Hiemstra.
Committed on 05/08/2026 at 10:24.
Pushed by ahiemstra into branch 'master'.
Drop defaultInputPlugin() from PlatformPlugin
It is no longer necessary now that input plugin information comes from
the package.
M +0 -5 src/PlatformPlugin.cpp
M +0 -7 src/PlatformPlugin.h
M +0 -5 src/platform/plasma/PlasmaPlatformPlugin.cpp
M +0 -1 src/platform/plasma/PlasmaPlatformPlugin.h
https://invent.kde.org/plasma/union/-/commit/def72cc1c33cc919eaa44de6c37a9da3fe9a2319
diff --git a/src/PlatformPlugin.cpp b/src/PlatformPlugin.cpp
index 2e3bf882..4da806f6 100644
--- a/src/PlatformPlugin.cpp
+++ b/src/PlatformPlugin.cpp
@@ -14,11 +14,6 @@ PlatformPlugin::PlatformPlugin(QObject *parent)
{
}
-QString PlatformPlugin::defaultInputPlugin()
-{
- return QString{};
-}
-
QList<std::filesystem::path> Union::PlatformPlugin::stylePackagePaths()
{
const auto paths = QStandardPaths::locateAll(QStandardPaths::GenericDataLocation, u"union/styles"_s, QStandardPaths::LocateDirectory);
diff --git a/src/PlatformPlugin.h b/src/PlatformPlugin.h
index 6429c72a..3ec6cf15 100644
--- a/src/PlatformPlugin.h
+++ b/src/PlatformPlugin.h
@@ -26,13 +26,6 @@ class UNION_EXPORT PlatformPlugin : public Plugin
public:
PlatformPlugin(QObject *parent = nullptr);
- /*!
- * Returns the platform's default input plugin.
- *
- * By default, this will return an empty string, which indicates all plugins
- * should be searched for the default style name.
- */
- virtual QString defaultInputPlugin();
/*!
* Returns the platform's default style name.
*/
diff --git a/src/platform/plasma/PlasmaPlatformPlugin.cpp b/src/platform/plasma/PlasmaPlatformPlugin.cpp
index 2de1dbdd..ed364430 100644
--- a/src/platform/plasma/PlasmaPlatformPlugin.cpp
+++ b/src/platform/plasma/PlasmaPlatformPlugin.cpp
@@ -36,11 +36,6 @@ PlasmaPlatformPlugin::PlasmaPlatformPlugin(QObject *parent)
});
}
-QString PlasmaPlatformPlugin::defaultInputPlugin()
-{
- return u"css"_s;
-}
-
QString PlasmaPlatformPlugin::defaultStyleName()
{
// These values should really be queries by the CSS using media queries,
diff --git a/src/platform/plasma/PlasmaPlatformPlugin.h b/src/platform/plasma/PlasmaPlatformPlugin.h
index 7d04cfce..817e5c9e 100644
--- a/src/platform/plasma/PlasmaPlatformPlugin.h
+++ b/src/platform/plasma/PlasmaPlatformPlugin.h
@@ -15,7 +15,6 @@ class PlasmaPlatformPlugin : public Union::PlatformPlugin
public:
PlasmaPlatformPlugin(QObject *parent = nullptr);
- QString defaultInputPlugin() override;
QString defaultStyleName() override;
QIcon platformIcon(const QString &name, const QColor &color) override;