LibWeb: Remove SessionHistoryTraversalQueue::process()

...because existance of this method conflicts with the purpose of
having a queue as it allows to start executing next task in the middle
of ongoing task.

For example:

1. SHTQ timer starts executing a task.
2. Task does SHTQ::process().

Another example:

1. SHTQ::process() start executing a task.
2. task does SHTQ::process().
This commit is contained in:
Aliaksandr Kalenik 2024-04-05 15:58:56 +02:00 committed by Alexander Kalenik
commit 00531573a4
Notes: sideshowbarker 2024-07-16 21:51:02 +09:00
3 changed files with 0 additions and 18 deletions

View file

@ -57,14 +57,6 @@ public:
return index.has_value() ? m_queue.take(*index) : SessionHistoryTraversalQueueEntry {};
}
void process()
{
while (m_queue.size() > 0) {
auto entry = m_queue.take_first();
entry.steps();
}
}
private:
Vector<SessionHistoryTraversalQueueEntry> m_queue;
RefPtr<Core::Timer> m_timer;