[plasma/plasma-desktop] kcms/mouse: kcms/mouse: Drop backend null checks
Nicolas Fella <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 52320017cbd4819c7d3a16f29d839d6522115f39 by Nicolas Fella.
Committed on 16/07/2026 at 14:52.
Pushed by nicolasfella into branch 'master'.
kcms/mouse: Drop backend null checks
There will always be a backend
M +0 -7 kcms/mouse/kcm.cpp
M +0 -3 kcms/mouse/mousemoduledata.cpp
https://invent.kde.org/plasma/plasma-desktop/-/commit/52320017cbd4819c7d3a16f29d839d6522115f39
diff --git a/kcms/mouse/kcm.cpp b/kcms/mouse/kcm.cpp
index 762528ed42..58c3d9870c 100644
--- a/kcms/mouse/kcm.cpp
+++ b/kcms/mouse/kcm.cpp
@@ -58,13 +58,6 @@ KCMMouse::KCMMouse(QObject *parent, const KPluginMetaData &data, [[maybe_unused]
m_inputBackend = std::make_unique<InputBackend>();
- if (!m_inputBackend) {
- m_initError = true;
- setSaveLoadMessage(Message::error(i18n("Not able to select appropriate backend")));
- qCCritical(KCM_MOUSE) << "Not able to select appropriate backend.";
- return;
- }
-
m_initError = !m_inputBackend->errorString().isNull();
if (m_initError) {
diff --git a/kcms/mouse/mousemoduledata.cpp b/kcms/mouse/mousemoduledata.cpp
index c508323285..2b1e9011a8 100644
--- a/kcms/mouse/mousemoduledata.cpp
+++ b/kcms/mouse/mousemoduledata.cpp
@@ -12,9 +12,6 @@ MouseModuleData::MouseModuleData(QObject *parent)
: KCModuleData(parent)
{
m_backend = std::make_unique<InputBackend>();
- if (!m_backend) {
- return;
- }
connect(m_backend.get(), &InputBackend::inputDevicesChanged, this, &MouseModuleData::updateRelevance);
updateRelevance();
}