From 0f235faabe3b46de84078b13630798d2a530bc79 Mon Sep 17 00:00:00 2001 From: Jungho Bang Date: Tue, 10 Jan 2023 12:12:30 -0800 Subject: [PATCH] Remove unused RxJS calls (#779) --- packages/wallet-sdk/src/relay/Session.ts | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/packages/wallet-sdk/src/relay/Session.ts b/packages/wallet-sdk/src/relay/Session.ts index ff710a2508..dca1971c1b 100644 --- a/packages/wallet-sdk/src/relay/Session.ts +++ b/packages/wallet-sdk/src/relay/Session.ts @@ -1,8 +1,6 @@ // Copyright (c) 2018-2022 Coinbase, Inc. // Licensed under the Apache License, version 2.0 -import { fromEvent, Observable } from "rxjs"; -import { filter, map } from "rxjs/operators"; import { sha256 } from "sha.js"; import { ScopedLocalStorage } from "../lib/ScopedLocalStorage"; @@ -48,19 +46,6 @@ export class Session { return null; } - public static get persistedSessionIdChange$(): Observable<{ - oldValue: string | null; - newValue: string | null; - }> { - return fromEvent(window, "storage").pipe( - filter(evt => evt.key === STORAGE_KEY_SESSION_ID), - map(evt => ({ - oldValue: evt.oldValue || null, - newValue: evt.newValue || null, - })), - ); - } - /** * Takes in a session ID and returns the sha256 hash of it. * @param sessionId session ID