From dd07c7f729a11ea405013823ad5716e845e5960c Mon Sep 17 00:00:00 2001 From: Aliaksandr Kalenik Date: Fri, 15 Mar 2024 09:51:59 +0100 Subject: [PATCH] LibWeb: Delete AnimationEffect::create() function It should not be possible to create AnimationEffect because it is an abstract interface according to the spec. --- Userland/Libraries/LibWeb/Animations/AnimationEffect.cpp | 5 ----- Userland/Libraries/LibWeb/Animations/AnimationEffect.h | 2 -- 2 files changed, 7 deletions(-) diff --git a/Userland/Libraries/LibWeb/Animations/AnimationEffect.cpp b/Userland/Libraries/LibWeb/Animations/AnimationEffect.cpp index 34224c9924f..4d018785de9 100644 --- a/Userland/Libraries/LibWeb/Animations/AnimationEffect.cpp +++ b/Userland/Libraries/LibWeb/Animations/AnimationEffect.cpp @@ -49,11 +49,6 @@ Bindings::PlaybackDirection css_animation_direction_to_bindings_playback_directi } } -JS::NonnullGCPtr AnimationEffect::create(JS::Realm& realm) -{ - return realm.heap().allocate(realm, realm); -} - OptionalEffectTiming EffectTiming::to_optional_effect_timing() const { return { diff --git a/Userland/Libraries/LibWeb/Animations/AnimationEffect.h b/Userland/Libraries/LibWeb/Animations/AnimationEffect.h index 49f106d2fd5..ec6e2454fe8 100644 --- a/Userland/Libraries/LibWeb/Animations/AnimationEffect.h +++ b/Userland/Libraries/LibWeb/Animations/AnimationEffect.h @@ -67,8 +67,6 @@ class AnimationEffect : public Bindings::PlatformObject { public: static RefPtr parse_easing_string(JS::Realm& realm, StringView value); - static JS::NonnullGCPtr create(JS::Realm&); - EffectTiming get_timing() const; ComputedEffectTiming get_computed_timing() const; WebIDL::ExceptionOr update_timing(OptionalEffectTiming timing = {});