Skip to content

Commit 27a82d3

Browse files
author
MarcoFalke
committed
Merge #18459: rpc: remove unused getbalances() code
6e0d82c rpc: remove unused getbalances() code (Jon Atack) Pull request description: This line from 999931c appears to be extraneous and replaced 2 lines after by `UniValue balances{UniValue::VOBJ};`. ACKs for top commit: Empact: ACK bitcoin/bitcoin@6e0d82c hebasto: ACK 6e0d82c, the `obj` local variable is not used until the end of the scope. Tree-SHA512: a220ca9cda091e78144d9b7fbe4bf90e8338d6e8c8dc7bea27a8e62f3a8ac1d983ad12a48a0a3366b2d8b9586878dfc69c1ec34bf846b34c91e42cda48a59850
2 parents 6b4f182 + 6e0d82c commit 27a82d3

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2390,8 +2390,6 @@ static UniValue getbalances(const JSONRPCRequest& request)
23902390
auto locked_chain = wallet.chain().lock();
23912391
LOCK(wallet.cs_wallet);
23922392

2393-
UniValue obj(UniValue::VOBJ);
2394-
23952393
const auto bal = wallet.GetBalance();
23962394
UniValue balances{UniValue::VOBJ};
23972395
{

0 commit comments

Comments
 (0)