mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 11:52:05 +02:00
Merchant: remove unused variables
This commit is contained in:
parent
07ecca5af4
commit
3af99e91e4
@ -592,7 +592,6 @@ Item {
|
|||||||
|
|
||||||
var model = appWindow.currentWallet.historyModel
|
var model = appWindow.currentWallet.historyModel
|
||||||
var count = model.rowCount()
|
var count = model.rowCount()
|
||||||
var totalAmount = 0
|
|
||||||
var nTransactions = 0
|
var nTransactions = 0
|
||||||
var blockchainHeight = null
|
var blockchainHeight = null
|
||||||
var txs = []
|
var txs = []
|
||||||
@ -610,8 +609,6 @@ Item {
|
|||||||
var subaddrIndex = model.data(idx, TransactionHistoryModel.TransactionSubaddrIndexRole);
|
var subaddrIndex = model.data(idx, TransactionHistoryModel.TransactionSubaddrIndexRole);
|
||||||
|
|
||||||
if (!isout && subaddrAccount == appWindow.currentWallet.currentSubaddressAccount && subaddrIndex == current_subaddress_table_index) {
|
if (!isout && subaddrAccount == appWindow.currentWallet.currentSubaddressAccount && subaddrIndex == current_subaddress_table_index) {
|
||||||
var amount = model.data(idx, TransactionHistoryModel.TransactionAtomicAmountRole);
|
|
||||||
totalAmount = walletManager.addi(totalAmount, amount)
|
|
||||||
nTransactions += 1
|
nTransactions += 1
|
||||||
|
|
||||||
var txid = model.data(idx, TransactionHistoryModel.TransactionHashRole);
|
var txid = model.data(idx, TransactionHistoryModel.TransactionHashRole);
|
||||||
@ -633,7 +630,6 @@ Item {
|
|||||||
txs.push({
|
txs.push({
|
||||||
"amount": displayAmount,
|
"amount": displayAmount,
|
||||||
"confirmations": confirmations,
|
"confirmations": confirmations,
|
||||||
"blockheight": blockHeight,
|
|
||||||
"in_txpool": in_txpool,
|
"in_txpool": in_txpool,
|
||||||
"txid": txid,
|
"txid": txid,
|
||||||
"time_epoch": timeEpoch,
|
"time_epoch": timeEpoch,
|
||||||
@ -653,9 +649,7 @@ Item {
|
|||||||
txs.forEach(function(tx){
|
txs.forEach(function(tx){
|
||||||
trackingModel.append({
|
trackingModel.append({
|
||||||
"amount": tx.amount,
|
"amount": tx.amount,
|
||||||
"blockheight": tx.blockheight,
|
|
||||||
"confirmations": tx.confirmations,
|
"confirmations": tx.confirmations,
|
||||||
"blockheight": tx.blockHeight,
|
|
||||||
"in_txpool": tx.in_txpool,
|
"in_txpool": tx.in_txpool,
|
||||||
"txid": tx.txid,
|
"txid": tx.txid,
|
||||||
"time_epoch": tx.time_epoch,
|
"time_epoch": tx.time_epoch,
|
||||||
|
Loading…
Reference in New Issue
Block a user