Skip to content

Commit

Permalink
perf(material/button): Remove unused inject. (#30320)
Browse files Browse the repository at this point in the history
(cherry picked from commit ff8cffc)
  • Loading branch information
kseamon authored and Andrew Seguin committed Jan 15, 2025
1 parent 4f676d4 commit ab497c4
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion src/material/button/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ ng_module(
":icon-button_scss",
] + glob(["**/*.html"]),
deps = [
"//src/cdk/platform",
"//src/material/core",
],
)
Expand Down
2 changes: 0 additions & 2 deletions src/material/button/button-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
*/

import {FocusMonitor, FocusOrigin} from '@angular/cdk/a11y';
import {Platform} from '@angular/cdk/platform';
import {
AfterViewInit,
ANIMATION_MODULE_TYPE,
Expand Down Expand Up @@ -91,7 +90,6 @@ const HOST_SELECTOR_MDC_CLASS_PAIR: {attribute: string; mdcClasses: string[]}[]
@Directive()
export class MatButtonBase implements AfterViewInit, OnDestroy {
_elementRef = inject(ElementRef);
_platform = inject(Platform);
_ngZone = inject(NgZone);
_animationMode = inject(ANIMATION_MODULE_TYPE, {optional: true});

Expand Down
1 change: 0 additions & 1 deletion tools/public_api_guard/material/button.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import { MatRippleLoader } from '@angular/material/core';
import { NgZone } from '@angular/core';
import { OnDestroy } from '@angular/core';
import { OnInit } from '@angular/core';
import { Platform } from '@angular/cdk/platform';
import { ThemePalette } from '@angular/material/core';

// @public
Expand Down

0 comments on commit ab497c4

Please sign in to comment.