postImmediateCppTask was unused

This commit is contained in:
Alistair Smith
2025-06-04 15:56:39 -07:00
parent 4b015cf585
commit 252efe8dc5
2 changed files with 1 additions and 16 deletions

View File

@@ -382,17 +382,6 @@ void ScriptExecutionContext::postTask(EventLoopTask* task)
{
static_cast<Zig::GlobalObject*>(m_globalObject)->queueTask(task);
}
// Executes the task on context's thread immediately.
void ScriptExecutionContext::postImmediateCppTask(Function<void(ScriptExecutionContext&)>&& lambda)
{
auto* task = new EventLoopTask(WTFMove(lambda));
static_cast<Zig::GlobalObject*>(m_globalObject)->queueImmediateCppTask(task);
}
// Executes the task on context's thread immediately.
void ScriptExecutionContext::postImmediateCppTask(EventLoopTask* task)
{
static_cast<Zig::GlobalObject*>(m_globalObject)->queueImmediateCppTask(task);
}
// Executes the task on context's thread asynchronously.
void ScriptExecutionContext::postTaskOnTimeout(EventLoopTask* task, Seconds timeout)
{

View File

@@ -134,11 +134,7 @@ public:
void postTaskOnTimeout(EventLoopTask* task, Seconds timeout);
// Executes the task on context's thread asynchronously.
void postTaskOnTimeout(Function<void(ScriptExecutionContext&)>&& lambda, Seconds timeout);
// Executes the task on context's thread immediately.
void postImmediateCppTask(Function<void(ScriptExecutionContext&)>&& lambda);
// Executes the task on context's thread immediately.
void postImmediateCppTask(EventLoopTask* task);
// Queues the task to the immediate cpp queue
void queueImmediateCppTask(Function<void(ScriptExecutionContext&)>&& lambda);
void queueImmediateCppTask(EventLoopTask* task);