Skip to content

Commit ab497c4

Browse files
kseamonAndrew Seguin
authored and
Andrew Seguin
committedJan 15, 2025·
perf(material/button): Remove unused inject. (#30320)
(cherry picked from commit ff8cffc)
1 parent 4f676d4 commit ab497c4

File tree

3 files changed

+0
-4
lines changed

3 files changed

+0
-4
lines changed
 

‎src/material/button/BUILD.bazel

-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ ng_module(
2626
":icon-button_scss",
2727
] + glob(["**/*.html"]),
2828
deps = [
29-
"//src/cdk/platform",
3029
"//src/material/core",
3130
],
3231
)

‎src/material/button/button-base.ts

-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
*/
88

99
import {FocusMonitor, FocusOrigin} from '@angular/cdk/a11y';
10-
import {Platform} from '@angular/cdk/platform';
1110
import {
1211
AfterViewInit,
1312
ANIMATION_MODULE_TYPE,
@@ -91,7 +90,6 @@ const HOST_SELECTOR_MDC_CLASS_PAIR: {attribute: string; mdcClasses: string[]}[]
9190
@Directive()
9291
export class MatButtonBase implements AfterViewInit, OnDestroy {
9392
_elementRef = inject(ElementRef);
94-
_platform = inject(Platform);
9593
_ngZone = inject(NgZone);
9694
_animationMode = inject(ANIMATION_MODULE_TYPE, {optional: true});
9795

‎tools/public_api_guard/material/button.md

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { MatRippleLoader } from '@angular/material/core';
1414
import { NgZone } from '@angular/core';
1515
import { OnDestroy } from '@angular/core';
1616
import { OnInit } from '@angular/core';
17-
import { Platform } from '@angular/cdk/platform';
1817
import { ThemePalette } from '@angular/material/core';
1918

2019
// @public

0 commit comments

Comments
 (0)
Please sign in to comment.