summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMaurice Kalinowski <maurice.kalinowski@qt.io>2016-11-09 07:51:25 +0100
committerMaurice Kalinowski <maurice.kalinowski@qt.io>2016-11-09 07:03:31 +0000
commitc83ba01f7bc542368973f3f24dfb59c6052dd78a (patch)
treedc042193ec8ec3014808e00b7ea153325d5680df /src
parent0383d0be33c7ede2104b7225c9af13104cbef85d (diff)
winrt: remove superfluous code
We do not need to check for an invalid timer id, as this can only happen if the above check is already true. Hence, this was doing the same check twice. Task-number: QTBUG-56756 Change-Id: Icca9b26c32ce88eab76dd02c6c10b24af07bfad7 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/kernel/qeventdispatcher_winrt.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/corelib/kernel/qeventdispatcher_winrt.cpp b/src/corelib/kernel/qeventdispatcher_winrt.cpp
index 8d4fbfd8e4..6126ff0e5d 100644
--- a/src/corelib/kernel/qeventdispatcher_winrt.cpp
+++ b/src/corelib/kernel/qeventdispatcher_winrt.cpp
@@ -532,9 +532,6 @@ bool QEventDispatcherWinRT::event(QEvent *e)
if (id >= d->timerInfos.size())
break;
- if (info.timerId == INVALID_TIMER_ID)
- break;
-
if (info.interval == 0 && info.inEvent) {
// post the next zero timer event as long as the timer was not restarted
QCoreApplication::postEvent(this, new QTimerEvent(id));