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>
bb10
Maurice Kalinowski 2016-11-09 07:51:25 +01:00
parent 0383d0be33
commit c83ba01f7b
1 changed files with 0 additions and 3 deletions

View File

@ -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));