Bladeren bron

LibWeb: Delete AnimationEffect::create() function

It should not be possible to create AnimationEffect because it is
an abstract interface according to the spec.
Aliaksandr Kalenik 1 jaar geleden
bovenliggende
commit
dd07c7f729

+ 0 - 5
Userland/Libraries/LibWeb/Animations/AnimationEffect.cpp

@@ -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 {

+ 0 - 2
Userland/Libraries/LibWeb/Animations/AnimationEffect.h

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