From b2efbe1640a56f86505f5e4a235c9ed709f57feb Mon Sep 17 00:00:00 2001 From: Enzo Cioppettini Date: Mon, 14 Mar 2022 12:49:46 -0300 Subject: [PATCH] update WalletPlugin.kt --- .../src/android/WalletPlugin.kt | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/bindings/wallet-cordova/src/android/WalletPlugin.kt b/bindings/wallet-cordova/src/android/WalletPlugin.kt index 608d3f2a..2547ad3d 100644 --- a/bindings/wallet-cordova/src/android/WalletPlugin.kt +++ b/bindings/wallet-cordova/src/android/WalletPlugin.kt @@ -105,25 +105,6 @@ class WalletPlugin } } - @ExperimentalUnsignedTypes - @Throws(JSONException::class) - private fun walletRestore(args: CordovaArgs, callbackContext: CallbackContext) { - val mnemonics = args.getString(0) - cordova.threadPool.execute { - try { - val normalized: String = Normalizer.normalize(mnemonics, Form.NFKD) - val wallet = Wallet.fromMnemonics(normalized, emptyList()) - - val walletId = nextWalletId.incrementAndGet() - wallets[walletId] = wallet - callbackContext.success(walletId) - } catch (e: Exception) { - callbackContext.error(e.message) - } - } - } - - @ExperimentalUnsignedTypes @Throws(JSONException::class) private fun symmetricCipherDecrypt(args: CordovaArgs, callbackContext: CallbackContext) {