on xenial help sign in
Remove variable that is always false (LP: #1585910)

Approved by: Michael Zanetti, Unity8 CI Bot

commit37d85b728fd9e3f7bfce9221efd97d3f3feae2a7 authorAlbert Astals Cid <albert.astals@canonical.com> dateThu 16 Feb 2017, 13:47 (10 years ago) parent78786af9006459
1 file changed−5
plugins/Ubuntu/Gestures/TouchGestureArea.cpp−5
plugins/Ubuntu/Gestures/TouchGestureArea.cpp−5
@@ -735,7 +735,6 @@ void TouchGestureArea::resyncCachedTouchPoints()
735735 bool added = false;
736736 bool ended = false;
737737 bool moved = false;
738− bool wantsDrag = false;
739738
740739 // list of deletes
741740 QMutableHashIterator<int, GestureTouchPoint*> removeIter(m_cachedTouchPoints);
@@ -765,10 +764,6 @@ void TouchGestureArea::resyncCachedTouchPoints()
765764 }
766765 }
767766
768− if (wantsDrag && !dragging()) {
769− setDragging(true);
770− }
771−
772767 if (ended) {
773768 if (m_cachedTouchPoints.isEmpty()) {
774769 if (!dragging()) Q_EMIT clicked();