mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-23 08:06:11 +00:00
Kernel: Use plain Function objects for the WorkQueue
The WorkQueue class previously had its own inline storage functionality for function pointers. With the recent changes to the Function class this is no longer necessary.
This commit is contained in:
committed by
Andreas Kling
parent
661d1aa8d1
commit
e9898a6031
@@ -31,9 +31,7 @@ WorkQueue::WorkQueue(const char* name)
|
||||
have_more = !m_items.is_empty();
|
||||
}
|
||||
if (item) {
|
||||
item->function(item->data);
|
||||
if (item->free_data)
|
||||
item->free_data(item->data);
|
||||
item->function();
|
||||
delete item;
|
||||
|
||||
if (have_more)
|
||||
|
||||
Reference in New Issue
Block a user