summaryrefslogtreecommitdiffstats
path: root/src/plugins/sensorgestures/qtsensors/qslamgesturerecognizer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/sensorgestures/qtsensors/qslamgesturerecognizer.cpp')
-rw-r--r--src/plugins/sensorgestures/qtsensors/qslamgesturerecognizer.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/plugins/sensorgestures/qtsensors/qslamgesturerecognizer.cpp b/src/plugins/sensorgestures/qtsensors/qslamgesturerecognizer.cpp
index ea3be725..b2858b3b 100644
--- a/src/plugins/sensorgestures/qtsensors/qslamgesturerecognizer.cpp
+++ b/src/plugins/sensorgestures/qtsensors/qslamgesturerecognizer.cpp
@@ -144,10 +144,6 @@ void QSlamSensorGestureRecognizer::accelChanged(QAccelerometerReading *reading)
restingList.removeLast();
restingList.insert(0, resting);
- if (xList.count() > 15)
- xList.removeLast();
- xList.insert(0, x);
-
if (orientationReading == 0)
return;
@@ -191,7 +187,6 @@ bool QSlamSensorGestureRecognizer::hasBeenResting()
void QSlamSensorGestureRecognizer::checkForSlam()
{
-
if (!hasBeenResting()) {
detecting = false;
return;