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'; }