Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.

Commit 53b8825

Browse files
authored
fix: Remove unneeded component imports (#1568)
1 parent b4a133c commit 53b8825

File tree

15 files changed

+11
-22
lines changed

15 files changed

+11
-22
lines changed

packages/chips/chip-set.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
ViewEncapsulation
1515
} from '@angular/core';
1616
import { merge, Observable, Subject, Subscription } from 'rxjs';
17-
import { startWith, take, takeUntil } from 'rxjs/operators';
17+
import { startWith, takeUntil } from 'rxjs/operators';
1818

1919
import { toBoolean } from '@angular-mdc/web/common';
2020

packages/floating-label/floating-label.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import {
22
AfterContentInit,
33
Directive,
44
ElementRef,
5-
EventEmitter,
65
Input,
76
NgZone,
87
OnDestroy

packages/icon-button/icon-button.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export class MdcIconOn { }
6868
changeDetection: ChangeDetectionStrategy.OnPush,
6969
encapsulation: ViewEncapsulation.None
7070
})
71-
export class MdcIconButton implements AfterContentInit, OnDestroy {
71+
export class MdcIconButton implements AfterContentInit, ControlValueAccessor, OnDestroy {
7272
private _uniqueId: string = `mdc-icon-button-${++nextUniqueId}`;
7373

7474
@Input() id: string = this._uniqueId;

packages/list/list.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
OnDestroy,
1313
Output,
1414
QueryList,
15-
ViewChild,
1615
ViewEncapsulation
1716
} from '@angular/core';
1817
import { fromEvent, merge, Observable, Subject, Subscription } from 'rxjs';

packages/menu-surface/menu-surface.abstract.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,9 @@ import {
88
Output
99
} from '@angular/core';
1010
import { fromEvent, Subject, Subscription } from 'rxjs';
11-
import { startWith, takeUntil } from 'rxjs/operators';
11+
import { takeUntil } from 'rxjs/operators';
1212

13-
import { Platform, toBoolean, toNumber } from '@angular-mdc/web/common';
14-
import { MdcMenuSurfaceAnchor } from './menu-surface-anchor';
13+
import { Platform, toBoolean } from '@angular-mdc/web/common';
1514

1615
import { getTransformPropertyName } from '@material/menu-surface/util';
1716
import { Corner, strings } from '@material/menu-surface/constants';

packages/menu/menu.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import {
1111
OnDestroy,
1212
Output,
1313
QueryList,
14-
ViewChild,
1514
ViewEncapsulation
1615
} from '@angular/core';
1716
import { Subscription } from 'rxjs';

packages/overlay/overlay-container.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ import { DOCUMENT } from '@angular/common';
1010
import {
1111
Inject,
1212
Injectable,
13-
InjectionToken,
14-
OnDestroy,
15-
Optional,
16-
SkipSelf,
13+
OnDestroy
1714
} from '@angular/core';
1815

1916
/** Container inside which all overlays will render. */

packages/overlay/overlay-module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NgModule, Provider } from '@angular/core';
1+
import { NgModule } from '@angular/core';
22
import { PortalModule } from '@angular-mdc/web/portal';
33
import { Overlay } from './overlay';
44

packages/overlay/overlay-ref.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { ComponentPortal, Portal, PortalOutlet, TemplatePortal } from '@angular-
1010
import { ComponentRef, EmbeddedViewRef, NgZone } from '@angular/core';
1111
import { Location } from '@angular/common';
1212
import { Observable, Subject, merge, SubscriptionLike, Subscription, Observer } from 'rxjs';
13-
import { take, takeUntil } from 'rxjs/operators';
13+
import { takeUntil } from 'rxjs/operators';
1414
import { OverlayConfig } from './overlay-config';
1515
import { OverlayReference } from './overlay-reference';
1616

packages/snackbar/snackbar-container.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
ViewChild,
1717
ViewEncapsulation,
1818
} from '@angular/core';
19-
import { Observable, Subject } from 'rxjs';
19+
import { Subject } from 'rxjs';
2020
import { take } from 'rxjs/operators';
2121
import { MdcSnackbarConfig } from './snackbar-config';
2222

0 commit comments

Comments
 (0)