Qt: Remove redundant doBackgroundControllerPoll()

pull/3744/head
Stenzek 2 months ago
parent 1f1182f33c
commit 2bc4a95ffa
No known key found for this signature in database

@ -2044,18 +2044,13 @@ void CoreThread::processAuxiliaryRenderWindowInputEvent(void* userdata, quint32
}); });
} }
void CoreThread::doBackgroundControllerPoll()
{
Core::IdleUpdate();
}
void CoreThread::createBackgroundControllerPollTimer() void CoreThread::createBackgroundControllerPollTimer()
{ {
DebugAssert(!m_background_controller_polling_timer); DebugAssert(!m_background_controller_polling_timer);
m_background_controller_polling_timer = new QTimer(this); m_background_controller_polling_timer = new QTimer(this);
m_background_controller_polling_timer->setSingleShot(false); m_background_controller_polling_timer->setSingleShot(false);
m_background_controller_polling_timer->setTimerType(Qt::CoarseTimer); m_background_controller_polling_timer->setTimerType(Qt::CoarseTimer);
connect(m_background_controller_polling_timer, &QTimer::timeout, this, &CoreThread::doBackgroundControllerPoll); connect(m_background_controller_polling_timer, &QTimer::timeout, &Core::IdleUpdate);
} }
void CoreThread::destroyBackgroundControllerPollTimer() void CoreThread::destroyBackgroundControllerPollTimer()

@ -196,7 +196,6 @@ private:
void onRenderWindowResized(int width, int height, float scale, float refresh_rate); void onRenderWindowResized(int width, int height, float scale, float refresh_rate);
void onRenderWindowKeyEvent(int key, bool pressed); void onRenderWindowKeyEvent(int key, bool pressed);
void onRenderWindowTextEntered(const QString& text); void onRenderWindowTextEntered(const QString& text);
void doBackgroundControllerPoll();
void processAuxiliaryRenderWindowInputEvent(void* userdata, quint32 event, quint32 param1, quint32 param2, void processAuxiliaryRenderWindowInputEvent(void* userdata, quint32 event, quint32 param1, quint32 param2,
quint32 param3); quint32 param3);

Loading…
Cancel
Save