diff options
author | MarcoFalke <falke.marco@gmail.com> | 2020-03-28 17:09:49 -0400 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2020-03-28 17:09:52 -0400 |
commit | 27a82d347eddfe1cde0005f8a2174274ab6efe9f (patch) | |
tree | 5019035decf9473221a97bba461fe6b029cbe7ca | |
parent | 6b4f182806d62f00035cd9edc8ea8b837138e7f0 (diff) | |
parent | 6e0d82c55bf4a9aae98c47b7cd00b2828b5dd0ee (diff) |
Merge #18459: rpc: remove unused getbalances() code
6e0d82c55bf4a9aae98c47b7cd00b2828b5dd0ee rpc: remove unused getbalances() code (Jon Atack)
Pull request description:
This line from 999931cf8f1 appears to be extraneous and replaced 2 lines after by `UniValue balances{UniValue::VOBJ};`.
ACKs for top commit:
Empact:
ACK https://github.com/bitcoin/bitcoin/pull/18459/commits/6e0d82c55bf4a9aae98c47b7cd00b2828b5dd0ee
hebasto:
ACK 6e0d82c55bf4a9aae98c47b7cd00b2828b5dd0ee, the `obj` local variable is not used until the end of the scope.
Tree-SHA512: a220ca9cda091e78144d9b7fbe4bf90e8338d6e8c8dc7bea27a8e62f3a8ac1d983ad12a48a0a3366b2d8b9586878dfc69c1ec34bf846b34c91e42cda48a59850
-rw-r--r-- | src/wallet/rpcwallet.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp index 0eb7ed2b71..5d34e592db 100644 --- a/src/wallet/rpcwallet.cpp +++ b/src/wallet/rpcwallet.cpp @@ -2390,8 +2390,6 @@ static UniValue getbalances(const JSONRPCRequest& request) auto locked_chain = wallet.chain().lock(); LOCK(wallet.cs_wallet); - UniValue obj(UniValue::VOBJ); - const auto bal = wallet.GetBalance(); UniValue balances{UniValue::VOBJ}; { |