diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-13 21:15:52 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2019-04-15 09:13:12 +0000 |
commit | 9880d61b981ddff56a4c8a89b7c799f127a11be0 (patch) | |
tree | 2eb7e18f2eec7afa8d81fe81434e7ca950add969 /src | |
parent | rpc: omit irrelevant fields for pool txes in gettransactions (diff) | |
download | monero-9880d61b981ddff56a4c8a89b7c799f127a11be0.tar.xz |
wallet_rpc_server: remove unused code
Diffstat (limited to 'src')
-rw-r--r-- | src/wallet/wallet_rpc_server.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/wallet/wallet_rpc_server.cpp b/src/wallet/wallet_rpc_server.cpp index 71c64d3c1..076cd2bb8 100644 --- a/src/wallet/wallet_rpc_server.cpp +++ b/src/wallet/wallet_rpc_server.cpp @@ -1842,11 +1842,7 @@ namespace tools { if (req.account_index != td.m_subaddr_index.major || (!req.subaddr_indices.empty() && req.subaddr_indices.count(td.m_subaddr_index.minor) == 0)) continue; - if (!transfers_found) - { - transfers_found = true; - } - auto txBlob = t_serializable_object_to_blob(td.m_tx); + transfers_found = true; wallet_rpc::transfer_details rpc_transfers; rpc_transfers.amount = td.amount(); rpc_transfers.spent = td.m_spent; |