From 29ac95a3e28c6806f6d3711e8dc2baad03e918d1 Mon Sep 17 00:00:00 2001 From: Shannon Booth Date: Sat, 10 May 2025 13:19:41 +1200 Subject: [PATCH] LibJS: Remove unused VM::on_call_stack_emptied --- Libraries/LibJS/Runtime/VM.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/Libraries/LibJS/Runtime/VM.h b/Libraries/LibJS/Runtime/VM.h index cddce389eb6..698f74ca664 100644 --- a/Libraries/LibJS/Runtime/VM.h +++ b/Libraries/LibJS/Runtime/VM.h @@ -127,8 +127,6 @@ public: void pop_execution_context() { m_execution_context_stack.take_last(); - if (m_execution_context_stack.is_empty() && on_call_stack_emptied) - on_call_stack_emptied(); } // https://tc39.es/ecma262/#running-execution-context @@ -251,7 +249,6 @@ public: void promise_rejection_tracker(Promise&, Promise::RejectionOperation) const; - Function on_call_stack_emptied; Function on_promise_unhandled_rejection; Function on_promise_rejection_handled; Function on_unimplemented_property_access;