#1564 remove unused code (#1565)

This commit is contained in:
Mario Romano
2017-01-28 14:51:57 +00:00
committed by GitHub
parent e38db7a484
commit 3fad45394a

View File

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