From 0ff88e8c17f4a624f8eadb8c4f9ee97fc903d8a1 Mon Sep 17 00:00:00 2001 From: tomastrajan Date: Wed, 14 Mar 2018 13:34:57 +1300 Subject: [PATCH] fix(examples): remove unused code --- src/app/examples/todos/todos.component.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/app/examples/todos/todos.component.ts b/src/app/examples/todos/todos.component.ts index c522b56bf..ad03f9f3c 100644 --- a/src/app/examples/todos/todos.component.ts +++ b/src/app/examples/todos/todos.component.ts @@ -1,9 +1,5 @@ import { Component, OnInit, OnDestroy } from '@angular/core'; -import { - MatSnackBar, - MatSnackBarRef, - SimpleSnackBar -} from '@angular/material/snack-bar'; +import { MatSnackBar } from '@angular/material/snack-bar'; import { Store } from '@ngrx/store'; import { Subject } from 'rxjs/Subject'; import { takeUntil } from 'rxjs/operators/takeUntil'; @@ -32,7 +28,6 @@ export class TodosComponent implements OnInit, OnDestroy { animateOnRouteEnter = ANIMATE_ON_ROUTE_ENTER; todos: any; newTodo = ''; - notification: MatSnackBarRef; constructor(public store: Store, public snackBar: MatSnackBar) {} @@ -101,7 +96,7 @@ export class TodosComponent implements OnInit, OnDestroy { } private showNotification(message: string, action?: string) { - return this.notification = this.snackBar.open(message, action, { + this.snackBar.open(message, action, { duration: 3000 }); }