From 656c35634348e8b0c37ab111a8ffbf4c3d61adf4 Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Thu, 5 Dec 2019 09:29:38 -0500 Subject: [PATCH] chore(animations): remove deprecated methods (#20041) --- core/src/utils/animation/animation-interface.ts | 5 ----- core/src/utils/animation/animation.ts | 12 ------------ 2 files changed, 17 deletions(-) diff --git a/core/src/utils/animation/animation-interface.ts b/core/src/utils/animation/animation-interface.ts index 29552c808c..92fc4a2b8b 100644 --- a/core/src/utils/animation/animation-interface.ts +++ b/core/src/utils/animation/animation-interface.ts @@ -212,11 +212,6 @@ export interface Animation { * upon the animation ending */ onFinish(callback: AnimationLifecycle, opts?: AnimationCallbackOptions): Animation; - - /** @deprecated */ - playAsync(): Promise; - /** @deprecated */ - playSync(): void; } export type AnimationLifecycle = (currentStep: 0 | 1, animation: Animation) => void; diff --git a/core/src/utils/animation/animation.ts b/core/src/utils/animation/animation.ts index a005c61baf..b2399f04ea 100644 --- a/core/src/utils/animation/animation.ts +++ b/core/src/utils/animation/animation.ts @@ -750,16 +750,6 @@ export const createAnimation = (animationId?: string): Animation => { return ani; }; - const playAsync = () => { - return play(); - }; - - const playSync = () => { - play({ sync: true }); - - return ani; - }; - const onAnimationEndFallback = () => { cssAnimationsTimerFallback = undefined; animationFinish(); @@ -941,8 +931,6 @@ export const createAnimation = (animationId?: string): Animation => { fromTo, parent, play, - playAsync, - playSync, pause, stop, destroy,