mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-02 14:37:26 -04:00
Remove unused JS variables
This commit is contained in:
@@ -21,7 +21,6 @@ function addressTruncatePretty(address, blocks){
|
|||||||
if(typeof(address) === "undefined") return "";
|
if(typeof(address) === "undefined") return "";
|
||||||
if(typeof(blocks) === "undefined") blocks = 2;
|
if(typeof(blocks) === "undefined") blocks = 2;
|
||||||
blocks = blocks <= 1 ? 1 : blocks >= 23 ? 23 : blocks;
|
blocks = blocks <= 1 ? 1 : blocks >= 23 ? 23 : blocks;
|
||||||
var ret = "";
|
|
||||||
return address.substring(0, 4 * blocks).match(/.{1,4}/g).join(' ') + " .. " + address.substring(address.length - 4 * blocks).match(/.{1,4}/g).join(' ');
|
return address.substring(0, 4 * blocks).match(/.{1,4}/g).join(' ') + " .. " + address.substring(address.length - 4 * blocks).match(/.{1,4}/g).join(' ');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1447,7 +1447,6 @@ Rectangle {
|
|||||||
var txs = [];
|
var txs = [];
|
||||||
for (var i = 0; i < root.txData.length; i++){
|
for (var i = 0; i < root.txData.length; i++){
|
||||||
var item = root.txData[i];
|
var item = root.txData[i];
|
||||||
var matched = "";
|
|
||||||
|
|
||||||
// daterange filtering
|
// daterange filtering
|
||||||
if(item.timestamp < fromDate || item.timestamp > toDate){
|
if(item.timestamp < fromDate || item.timestamp > toDate){
|
||||||
|
|||||||
@@ -47,7 +47,7 @@ ColumnLayout {
|
|||||||
return passwordInput.text === passwordInputConfirm.text;
|
return passwordInput.text === passwordInputConfirm.text;
|
||||||
}
|
}
|
||||||
|
|
||||||
function calcPasswordStrength(inp) {
|
function calcPasswordStrength() {
|
||||||
if(!progressLayout.visible) return;
|
if(!progressLayout.visible) return;
|
||||||
if(passwordInput.text.length <= 1){
|
if(passwordInput.text.length <= 1){
|
||||||
root.passwordFill = 0;
|
root.passwordFill = 0;
|
||||||
|
|||||||
@@ -46,7 +46,6 @@ Rectangle {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
var valid = false;
|
|
||||||
if(wizardController.walletRestoreMode === "keys") {
|
if(wizardController.walletRestoreMode === "keys") {
|
||||||
return wizardWalletInput.verify() && wizardRestoreWallet1.verifyFromKeys();
|
return wizardWalletInput.verify() && wizardRestoreWallet1.verifyFromKeys();
|
||||||
} else if(wizardController.walletRestoreMode === "seed") {
|
} else if(wizardController.walletRestoreMode === "seed") {
|
||||||
|
|||||||
Reference in New Issue
Block a user