From 2662d20da12c037ce9741754c6ecdb3e9c3fe632 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Mon, 30 May 2022 19:36:46 +0100 Subject: [PATCH] [input] Remove unused local variables --- src/input.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/input.cpp b/src/input.cpp index 3d0b817f2f..8d65a44ac2 100644 --- a/src/input.cpp +++ b/src/input.cpp @@ -1254,8 +1254,6 @@ class InternalWindowEventFilter : public InputEventFilter } QWindow *internal = static_cast(input()->pointer()->focus())->handle(); const QPointF localPos = event->globalPosition() - internal->position(); - const Qt::Orientation orientation = (event->angleDelta().x() != 0) ? Qt::Horizontal : Qt::Vertical; - const int delta = event->angleDelta().x() != 0 ? event->angleDelta().x() : event->angleDelta().y(); QWheelEvent wheelEvent(localPos, event->globalPosition(), QPoint(), event->angleDelta() * -1, event->buttons(),