Skip to content

Commit

Permalink
remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-pedro-rosario committed Feb 23, 2024
1 parent ba1ea2c commit 187a86a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions packages/wallet-sdk/src/relay/mobile/MobileRelayUI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export class MobileRelayUI implements RelayUI {
private readonly redirectDialog: RedirectDialog;
private attached = false;
private darkMode = false;
private openedWindow: Window | null = null;

constructor(options: Readonly<RelayUIOptions>) {
this.redirectDialog = new RedirectDialog();
Expand All @@ -24,10 +23,6 @@ export class MobileRelayUI implements RelayUI {

setConnected(_connected: boolean) {} // no-op

closeOpenedWindow() {
this.openedWindow?.close();
this.openedWindow = null;
}

private redirectToCoinbaseWallet(walletLinkUrl?: string): void {
const url = new URL('https://go.cb-w.com/walletlink');
Expand All @@ -39,8 +34,6 @@ export class MobileRelayUI implements RelayUI {

window.location.href = url.href;

setTimeout(() => this.closeOpenedWindow(), 5000);

}

openCoinbaseWalletDeeplink(walletLinkUrl?: string): void {
Expand All @@ -65,13 +58,11 @@ export class MobileRelayUI implements RelayUI {
}): () => void {
// it uses the return callback to clear the dialog
return () => {
this.closeOpenedWindow();
this.redirectDialog.clear();
};
}

hideRequestEthereumAccounts() {
this.closeOpenedWindow();
this.redirectDialog.clear();
}

Expand Down

0 comments on commit 187a86a

Please sign in to comment.