Skip to content

Commit

Permalink
Remove unused RxJS calls (#779)
Browse files Browse the repository at this point in the history
  • Loading branch information
bangtoven authored Jan 10, 2023
1 parent 1e6b0bd commit 0f235fa
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions packages/wallet-sdk/src/relay/Session.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) 2018-2022 Coinbase, Inc. <https://www.coinbase.com/>
// 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";
Expand Down Expand Up @@ -48,19 +46,6 @@ export class Session {
return null;
}

public static get persistedSessionIdChange$(): Observable<{
oldValue: string | null;
newValue: string | null;
}> {
return fromEvent<StorageEvent>(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
Expand Down

0 comments on commit 0f235fa

Please # to comment.