Skip to content

Commit bcce85a

Browse files
alan-agius4alxhub
authored andcommitted
refactor(animations): remove deprecated matchesElement from AnimationDriver (#55479)
BREAKING CHANGE: Deprecated `matchesElement` method has been removed from `AnimationDriver` as it is unused. PR Close #55479
1 parent eecde2e commit bcce85a

File tree

5 files changed

+0
-28
lines changed

5 files changed

+0
-28
lines changed

goldens/public-api/animations/browser/index.md

-4
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ export abstract class AnimationDriver {
1717
abstract containsElement(elm1: any, elm2: any): boolean;
1818
abstract getParentElement(element: unknown): unknown;
1919
// @deprecated (undocumented)
20-
abstract matchesElement(element: any, selector: string): boolean;
21-
// @deprecated (undocumented)
2220
static NOOP: AnimationDriver;
2321
// (undocumented)
2422
abstract query(element: any, selector: string, multi: boolean): any[];
@@ -38,8 +36,6 @@ export class NoopAnimationDriver implements AnimationDriver {
3836
containsElement(elm1: any, elm2: any): boolean;
3937
// (undocumented)
4038
getParentElement(element: unknown): unknown;
41-
// @deprecated (undocumented)
42-
matchesElement(_element: any, _selector: string): boolean;
4339
// (undocumented)
4440
query(element: any, selector: string, multi: boolean): any[];
4541
// (undocumented)

goldens/public-api/animations/browser/testing/index.md

-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@ export class MockAnimationDriver implements AnimationDriver {
2222
// (undocumented)
2323
static log: AnimationPlayer[];
2424
// (undocumented)
25-
matchesElement(_element: any, _selector: string): boolean;
26-
// (undocumented)
2725
query(element: any, selector: string, multi: boolean): any[];
2826
// (undocumented)
2927
validateAnimatableStyleProperty(prop: string): boolean;

packages/animations/browser/src/render/animation_driver.ts

-13
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@ export class NoopAnimationDriver implements AnimationDriver {
2424
return validateStyleProperty(prop);
2525
}
2626

27-
/**
28-
* @deprecated unused
29-
*/
30-
matchesElement(_element: any, _selector: string): boolean {
31-
// This method is deprecated and no longer in use so we return false.
32-
return false;
33-
}
34-
3527
/**
3628
*
3729
* @returns Whether elm1 contains elm2.
@@ -91,11 +83,6 @@ export abstract class AnimationDriver {
9183

9284
abstract validateAnimatableStyleProperty?: (prop: string) => boolean;
9385

94-
/**
95-
* @deprecated No longer in use. Will be removed.
96-
*/
97-
abstract matchesElement(element: any, selector: string): boolean;
98-
9986
abstract containsElement(elm1: any, elm2: any): boolean;
10087

10188
/**

packages/animations/browser/src/render/web_animations/web_animations_driver.ts

-5
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ export class WebAnimationsDriver implements AnimationDriver {
4444
return true;
4545
}
4646

47-
matchesElement(_element: any, _selector: string): boolean {
48-
// This method is deprecated and no longer in use so we return false.
49-
return false;
50-
}
51-
5247
containsElement(elm1: any, elm2: any): boolean {
5348
return containsElement(elm1, elm2);
5449
}

packages/animations/browser/testing/src/mock_animation_driver.ts

-4
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,6 @@ export class MockAnimationDriver implements AnimationDriver {
3333
return ɵvalidateWebAnimatableStyleProperty(cssProp);
3434
}
3535

36-
matchesElement(_element: any, _selector: string): boolean {
37-
return false;
38-
}
39-
4036
containsElement(elm1: any, elm2: any): boolean {
4137
return containsElement(elm1, elm2);
4238
}

0 commit comments

Comments
 (0)