Skip to content

Commit 9e2a97b

Browse files
committed
Remove unused goToHome function from topbar and admin components
1 parent 5c8a1b0 commit 9e2a97b

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

src/app/components/admin-app/admin-app.component.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -149,13 +149,6 @@ export class AdminAppComponent implements OnInit, OnDestroy {
149149
}
150150
}
151151

152-
/**
153-
* Navigate to home page
154-
*/
155-
goToHome(): void {
156-
this.router.navigate(['/']);
157-
}
158-
159152
ngOnDestroy() {
160153
this.unsubscribe$.next(null);
161154
this.unsubscribe$.complete();

src/app/components/shared/top-bar/topbar.component.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,10 +151,6 @@ export class TopbarComponent implements OnInit, OnDestroy {
151151
});
152152
}
153153

154-
goToHome(): void {
155-
window.location.href = '/';
156-
}
157-
158154
ngOnDestroy(): void {
159155
this.unsubscribe$.next(null);
160156
this.unsubscribe$.complete();

0 commit comments

Comments
 (0)