LibWeb: Delete AnimationEffect::create() function

It should not be possible to create AnimationEffect because it is
an abstract interface according to the spec.
This commit is contained in:
Aliaksandr Kalenik 2024-03-15 09:51:59 +01:00 committed by Andreas Kling
parent 3a8bde9ef2
commit dd07c7f729
Notes: sideshowbarker 2024-07-17 01:13:25 +09:00
2 changed files with 0 additions and 7 deletions

View File

@ -49,11 +49,6 @@ Bindings::PlaybackDirection css_animation_direction_to_bindings_playback_directi
}
}
JS::NonnullGCPtr<AnimationEffect> AnimationEffect::create(JS::Realm& realm)
{
return realm.heap().allocate<AnimationEffect>(realm, realm);
}
OptionalEffectTiming EffectTiming::to_optional_effect_timing() const
{
return {

View File

@ -67,8 +67,6 @@ class AnimationEffect : public Bindings::PlatformObject {
public:
static RefPtr<CSS::StyleValue const> parse_easing_string(JS::Realm& realm, StringView value);
static JS::NonnullGCPtr<AnimationEffect> create(JS::Realm&);
EffectTiming get_timing() const;
ComputedEffectTiming get_computed_timing() const;
WebIDL::ExceptionOr<void> update_timing(OptionalEffectTiming timing = {});