From 3fad45394a643d3d435361932ac3cf4bdf118d0a Mon Sep 17 00:00:00 2001 From: Mario Romano Date: Sat, 28 Jan 2017 14:51:57 +0000 Subject: [PATCH] #1564 remove unused code (#1565) --- demo-shell-ng2/app/app.component.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/demo-shell-ng2/app/app.component.ts b/demo-shell-ng2/app/app.component.ts index fc0ae476ea..ca20700945 100644 --- a/demo-shell-ng2/app/app.component.ts +++ b/demo-shell-ng2/app/app.component.ts @@ -53,17 +53,6 @@ export class AppComponent { } } - isLoggedIn(): boolean { - this.redirectToLoginPageIfNotLoggedIn(); - return this.authService.isLoggedIn(); - } - - redirectToLoginPageIfNotLoggedIn(): void { - if (!this.authService.isLoggedIn()) { - this.router.navigate(['/login']); - } - } - isAPageWithHeaderBar(): boolean { return location.pathname === '/login' || location.pathname === '/settings'; }