aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-17 11:25:09 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2019-04-17 11:25:33 +0000
commit3b9ce453a9261934c8ecc23b5e01c40ac572f7eb (patch)
treeca89ccd8be0213610fabda1cdddc692c3133e06a
parentMerge pull request #5415 (diff)
downloadmonero-3b9ce453a9261934c8ecc23b5e01c40ac572f7eb.tar.xz
wallet_rpc_server: remove unused variable
-rw-r--r--src/wallet/wallet_rpc_server.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp
index 1dd589d41..254184bee 100644
--- a/src/wallet/wallet_rpc_server.cpp
+++ b/src/wallet/wallet_rpc_server.cpp
@@ -1835,14 +1835,12 @@ namespace tools
wallet2::transfer_container transfers;
m_wallet->get_transfers(transfers);
- bool transfers_found = false;
for (const auto& td : transfers)
{
if (!filter || available != td.m_spent)
{
if (req.account_index != td.m_subaddr_index.major || (!req.subaddr_indices.empty() && req.subaddr_indices.count(td.m_subaddr_index.minor) == 0))
continue;
- transfers_found = true;
wallet_rpc::transfer_details rpc_transfers;
rpc_transfers.amount = td.amount();
rpc_transfers.spent = td.m_spent;