From 48014f99dcda836e86c962455ceda99e3d79702d Mon Sep 17 00:00:00 2001 From: Amir Masoud Abdol Date: Thu, 11 May 2023 15:57:15 +0200 Subject: [PATCH] Remove an unused variable Pick-to: 6.5 6.6 Task-number: QTBUG-109394 Change-Id: Ib1099e3d4091b0b222e405ce25b5e680f0514476 Reviewed-by: Joerg Bornemann --- src/widgets/kernel/qgesturemanager.cpp | 2 +- src/widgets/kernel/qgesturemanager_p.h | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/src/widgets/kernel/qgesturemanager.cpp b/src/widgets/kernel/qgesturemanager.cpp index 0108e01e5f..76ae157137 100644 --- a/src/widgets/kernel/qgesturemanager.cpp +++ b/src/widgets/kernel/qgesturemanager.cpp @@ -50,7 +50,7 @@ static inline int panTouchPoints() #endif QGestureManager::QGestureManager(QObject *parent) - : QObject(parent), state(NotGesture), m_lastCustomGestureId(Qt::CustomGesture) + : QObject(parent), m_lastCustomGestureId(Qt::CustomGesture) { qRegisterMetaType(); diff --git a/src/widgets/kernel/qgesturemanager_p.h b/src/widgets/kernel/qgesturemanager_p.h index 32f1c2aba3..f15e4ba233 100644 --- a/src/widgets/kernel/qgesturemanager_p.h +++ b/src/widgets/kernel/qgesturemanager_p.h @@ -64,17 +64,6 @@ private: QSet m_activeGestures; QSet m_maybeGestures; - QT_WARNING_PUSH - QT_WARNING_DISABLE_GCC("-Wattributes") - [[maybe_unused]] enum State { - Gesture, - NotGesture, - MaybeGesture // this means timers are up and waiting for some - // more events, and input events are handled by - // gesture recognizer explicitly - } state; - QT_WARNING_POP - struct ObjectGesture { QObject* object;