From 74141806074006a7150c7c15b8dc077f9e7b4dce Mon Sep 17 00:00:00 2001 From: willclarktech Date: Tue, 15 Sep 2020 12:48:13 +0200 Subject: [PATCH] launchpad-ledger: Remove unused commented code --- .../launchpad-ledger/src/launchpadledger.ts | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/packages/launchpad-ledger/src/launchpadledger.ts b/packages/launchpad-ledger/src/launchpadledger.ts index ea2aa82d..6b078d0f 100644 --- a/packages/launchpad-ledger/src/launchpadledger.ts +++ b/packages/launchpad-ledger/src/launchpadledger.ts @@ -98,16 +98,6 @@ export class LaunchpadLedger { this.userAgent = navigator.userAgent; } - // // quickly test connection and compatibility with the LaunchpadLedger device throwing away the connection - // async testDevice(): Promise { - // // poll device with low timeout to check if the device is connected - // const secondsTimeout = 3; // a lower value always timeouts - // await this.connect(secondsTimeout); - // this.cosmosApp = null; - - // return this; - // } - async connect(timeout = defaultInteractionTimeout): Promise { // assume good connection if connected once if (this.cosmosApp) { @@ -150,16 +140,6 @@ export class LaunchpadLedger { return CosmosApp.getBech32FromPK(this.prefix, Buffer.from(pubkeyToUse)); } - // async verifyLedgerAddress(): Promise { - // await this.connect(); - // assert(this.cosmosApp, "Cosmos Ledger App is not connected"); - - // const response = await this.cosmosApp.showAddressAndPubKey(this.hdPath, this.bech32Prefix); - // this.handleLedgerErrors(response, { - // rejectionMessage: "Displayed address was rejected by the user", - // }); - // } - async sign(message: Uint8Array): Promise { await this.connect(); assert(this.cosmosApp, "Cosmos Ledger App is not connected");