Unnecesary comment removed

This commit is contained in:
Gabriel Masclef 2017-11-15 10:05:55 -03:00
parent 595971e907
commit b09abfbc81
No known key found for this signature in database
GPG Key ID: DD6D7EAADE12280D
1 changed files with 0 additions and 31 deletions

View File

@ -229,34 +229,6 @@ export class ImportWalletPage implements OnInit {
}, 100); }, 100);
} }
/*
IMPORT FROM PUBLIC KEY - PENDING TODO from v1
var _importExtendedPublicKey = function(xPubKey, opts) {
ongoingProcess.set('importingWallet', true);
$timeout(function() {
profileService.importExtendedPublicKey(opts, function(err, walletId) {
ongoingProcess.set('importingWallet', false);
if (err) {
$scope.error = err;
return $timeout(function() {
$scope.$apply();
});
}
profileService.setBackupFlag(walletId);
if ($stateParams.fromOnboarding) {
profileService.setDisclaimerAccepted(function(err) {
if (err) $log.error(err);
});
}
$state.go('tabs.home');
});
}, 100);
};
*/
private importMnemonic(words: string, opts: any): void { private importMnemonic(words: string, opts: any): void {
this.onGoingProcessProvider.set('importingWallet', true); this.onGoingProcessProvider.set('importingWallet', true);
setTimeout(() => { setTimeout(() => {
@ -337,9 +309,6 @@ export class ImportWalletPage implements OnInit {
return; return;
} else if (words.indexOf('xprv') == 0 || words.indexOf('tprv') == 0) { } else if (words.indexOf('xprv') == 0 || words.indexOf('tprv') == 0) {
return this.importExtendedPrivateKey(words, opts); return this.importExtendedPrivateKey(words, opts);
} else if (words.indexOf('xpub') == 0 || words.indexOf('tpuv') == 0) {
//return this.importExtendedPublicKey(words, opts); TODO
return this.logger.warn("TODO: this.importExtendedPublicKey(words, opts)");
} else { } else {
let wordList: Array<any> = words.split(/[\u3000\s]+/); let wordList: Array<any> = words.split(/[\u3000\s]+/);