chore(animations): remove deprecated methods (#20041)

This commit is contained in:
Liam DeBeasi
2019-12-05 09:29:38 -05:00
committed by GitHub
parent 66e6dfbe44
commit 656c356343
2 changed files with 0 additions and 17 deletions

View File

@ -212,11 +212,6 @@ export interface Animation {
* upon the animation ending * upon the animation ending
*/ */
onFinish(callback: AnimationLifecycle, opts?: AnimationCallbackOptions): Animation; onFinish(callback: AnimationLifecycle, opts?: AnimationCallbackOptions): Animation;
/** @deprecated */
playAsync(): Promise<void>;
/** @deprecated */
playSync(): void;
} }
export type AnimationLifecycle = (currentStep: 0 | 1, animation: Animation) => void; export type AnimationLifecycle = (currentStep: 0 | 1, animation: Animation) => void;

View File

@ -750,16 +750,6 @@ export const createAnimation = (animationId?: string): Animation => {
return ani; return ani;
}; };
const playAsync = () => {
return play();
};
const playSync = () => {
play({ sync: true });
return ani;
};
const onAnimationEndFallback = () => { const onAnimationEndFallback = () => {
cssAnimationsTimerFallback = undefined; cssAnimationsTimerFallback = undefined;
animationFinish(); animationFinish();
@ -941,8 +931,6 @@ export const createAnimation = (animationId?: string): Animation => {
fromTo, fromTo,
parent, parent,
play, play,
playAsync,
playSync,
pause, pause,
stop, stop,
destroy, destroy,