remove unused code

This commit is contained in:
cyan 2024-08-21 08:29:47 +00:00
parent 75c2bf2db9
commit 9606e21005
2 changed files with 0 additions and 10 deletions

View file

@ -32,14 +32,9 @@ String getSeed() {
// monero.Wallet_setCacheAttribute(wptr!, key: "cakewallet.seed", value: seed);
final cakepolyseed =
monero.Wallet_getCacheAttribute(wptr!, key: "cakewallet.seed");
final cakepassphrase = getPassphrase();
if (cakepolyseed != "") {
return cakepolyseed;
}
final polyseed = monero.Wallet_getPolyseed(wptr!, passphrase: cakepassphrase);
if (polyseed != "") {
return polyseed;
}
final legacy = getSeedLegacy("English");
return legacy;
}

View file

@ -34,14 +34,9 @@ String getSeed() {
// wownero.Wallet_setCacheAttribute(wptr!, key: "cakewallet.seed", value: seed);
final cakepolyseed =
wownero.Wallet_getCacheAttribute(wptr!, key: "cakewallet.seed");
final cakepassphrase = getPassphrase();
if (cakepolyseed != "") {
return cakepolyseed;
}
final polyseed = wownero.Wallet_getPolyseed(wptr!, passphrase: cakepassphrase);
if (polyseed != "") {
return polyseed;
}
final legacy = getSeedLegacy(null);
return legacy;
}