diff --git a/libinput/connection.cpp b/libinput/connection.cpp
index 20a3b93ec7..82c374d715 100644
--- a/libinput/connection.cpp
+++ b/libinput/connection.cpp
@@ -28,8 +28,6 @@ along with this program. If not, see .
#include "../udev.h"
#include "libinput_logging.h"
-#include
-
#include
#include
#include
@@ -603,23 +601,6 @@ void Connection::applyDeviceConfig(Device *device)
// pass configuration to Device
device->setConfig(m_config->group("Libinput").group(QString::number(device->vendor())).group(QString::number(device->product())).group(device->name()));
device->loadConfiguration();
-
- if (device->isPointer() && !device->isTouchpad()) {
- const KConfigGroup group = m_config->group("Mouse");
- device->setLeftHanded(group.readEntry("MouseButtonMapping", "RightHanded") == QLatin1String("LeftHanded"));
- qreal accel = group.readEntry("Acceleration", -1.0);
- if (qFuzzyCompare(accel, -1.0) || qFuzzyCompare(accel, 1.0)) {
- // default value
- device->setPointerAcceleration(0.0);
- } else {
- // the X11-based config is mapped in [0.1,20.0] with 1.0 being the "normal" setting - we assume that's the default
- if (accel < 1.0) {
- device->setPointerAcceleration(-1.0 + ((accel * 10.0) - 1.0) / 9.0);
- } else {
- device->setPointerAcceleration((accel -1.0)/19.0);
- }
- }
- }
}
void Connection::slotKGlobalSettingsNotifyChange(int type, int arg)