diff --git a/apps/browser/src/platform/browser/browser-api.ts b/apps/browser/src/platform/browser/browser-api.ts index fa7f357ba95..38014709932 100644 --- a/apps/browser/src/platform/browser/browser-api.ts +++ b/apps/browser/src/platform/browser/browser-api.ts @@ -211,9 +211,6 @@ export class BrowserApi { private static registeredMessageListeners: any[] = []; - /** - * Use ngzone.run() to ensure callback run inside the Angular zone. - */ static messageListener( name: string, callback: (message: any, sender: chrome.runtime.MessageSender, response: any) => unknown @@ -246,14 +243,6 @@ export class BrowserApi { } } - /** - * Creates an observable that listens for messages. While this observable might - * operate outside the Angular zone, it's recommended to pipe it with the - * utility function `runInsideAngular` to ensure proper triggering of change detection - * and other zone-related behaviors. - * - * @see /libs/angular/src/utils/run-inside-angular.operator.ts - */ static messageListener$() { return new Observable((subscriber) => { const handler = (message: unknown) => { diff --git a/apps/browser/src/platform/popup/services/browser-router.service.ts b/apps/browser/src/platform/popup/services/browser-router.service.ts index 23cbd7b8614..ea81a855fc1 100644 --- a/apps/browser/src/platform/popup/services/browser-router.service.ts +++ b/apps/browser/src/platform/popup/services/browser-router.service.ts @@ -1,5 +1,5 @@ import { Injectable } from "@angular/core"; -import { ActivatedRoute, ActivatedRouteSnapshot, NavigationEnd, Router } from "@angular/router"; +import { ActivatedRouteSnapshot, NavigationEnd, Router } from "@angular/router"; import { filter } from "rxjs"; import { StateService } from "@bitwarden/common/platform/abstractions/state.service"; @@ -39,12 +39,4 @@ export class BrowserRouterService { async setPreviousUrl(url: string) { await this.stateService.setPreviousUrl(url); } - - private getDeepestChild(activatedRoute: ActivatedRoute): ActivatedRoute { - let child = activatedRoute; - while (child.firstChild) { - child = child.firstChild; - } - return child; - } }