chore(event): replace inlined TSList::Clear

This commit is contained in:
fallenoak 2025-10-02 08:57:01 -05:00 committed by GitHub
parent 05e327e54f
commit b10bb3bba6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -47,14 +47,7 @@ void ResetSyncState(EvtContext* context) {
context->m_critsect.Enter();
EvtKeyDown* node;
auto list = &context->m_queueSyncKeyDownList;
while (node = list->Head()) {
list->UnlinkNode(node);
list->DeleteNode(node);
}
context->m_queueSyncKeyDownList.Clear();
context->m_critsect.Leave();
}