From af552856c87af1acde8f2b3632180876ee9592a4 Mon Sep 17 00:00:00 2001 From: Jelle Raaijmakers Date: Tue, 26 Aug 2025 14:22:05 +0200 Subject: [PATCH] LibWeb: Remove unused TemporaryExecutionContext from Animation We don't need a temporary execution context to create a promise. --- Libraries/LibWeb/Animations/Animation.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Libraries/LibWeb/Animations/Animation.cpp b/Libraries/LibWeb/Animations/Animation.cpp index 218dff3a62d..8f69d371c93 100644 --- a/Libraries/LibWeb/Animations/Animation.cpp +++ b/Libraries/LibWeb/Animations/Animation.cpp @@ -1182,7 +1182,6 @@ void Animation::update_finished_state(DidSeek did_seek, SynchronouslyNotify sync // 6. If current finished state is false and animation’s current finished promise is already resolved, set // animation’s current finished promise to a new promise in the relevant Realm of animation. if (!current_finished_state && m_is_finished) { - HTML::TemporaryExecutionContext execution_context { realm }; m_current_finished_promise = WebIDL::create_promise(realm); m_is_finished = false; }