Skip to content

Commit

Permalink
fix(examples): remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
tomastrajan committed Mar 14, 2018
1 parent 71d0f2a commit 0ff88e8
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/app/examples/todos/todos.component.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -32,7 +28,6 @@ export class TodosComponent implements OnInit, OnDestroy {
animateOnRouteEnter = ANIMATE_ON_ROUTE_ENTER;
todos: any;
newTodo = '';
notification: MatSnackBarRef<SimpleSnackBar>;

constructor(public store: Store<any>, public snackBar: MatSnackBar) {}

Expand Down Expand Up @@ -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
});
}
Expand Down

0 comments on commit 0ff88e8

Please sign in to comment.