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 = {});