aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMeshCollider <dobsonsa68@gmail.com>2019-03-21 21:00:10 +1300
committerMeshCollider <dobsonsa68@gmail.com>2019-03-21 21:00:25 +1300
commit717fd58c4ba5c64778fa9a8bf6bbf5ae1164df3f (patch)
treece819f49899843223a463fcd99fdff7c2c44adb2 /src
parent2607d960a02e21098092e95ba6bc2a64c93e6127 (diff)
parentbb6195e34daa7e4b2df49c77e82a1787e3810ec9 (diff)
downloadbitcoin-717fd58c4ba5c64778fa9a8bf6bbf5ae1164df3f.tar.xz
Merge #15625: refactor: Remove unused function
bb6195e34 refactor: Remove unused function (practicalswift) Pull request description: Last use removed in cad5dd2368109ec398a3b79c8b9e94dfd23f0845. Tree-SHA512: f65bf8f77b9aadbfba39bd80076a4d773eddf685a8a90ef2db549552a3d0ccd426ce3920b2f71954703f64d840fa88349957996d1f64a9c4d3f27a99b4da70e7
Diffstat (limited to 'src')
-rw-r--r--src/wallet/rpcwallet.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/wallet/rpcwallet.cpp b/src/wallet/rpcwallet.cpp
index fa7604b695..d32613fc77 100644
--- a/src/wallet/rpcwallet.cpp
+++ b/src/wallet/rpcwallet.cpp
@@ -3881,19 +3881,6 @@ UniValue sethdseed(const JSONRPCRequest& request)
return NullUniValue;
}
-void AddKeypathToMap(const CWallet* pwallet, const CKeyID& keyID, std::map<CPubKey, KeyOriginInfo>& hd_keypaths)
-{
- CPubKey vchPubKey;
- if (!pwallet->GetPubKey(keyID, vchPubKey)) {
- return;
- }
- KeyOriginInfo info;
- if (!pwallet->GetKeyOrigin(keyID, info)) {
- throw JSONRPCError(RPC_INTERNAL_ERROR, "Internal keypath is broken");
- }
- hd_keypaths.emplace(vchPubKey, std::move(info));
-}
-
UniValue walletprocesspsbt(const JSONRPCRequest& request)
{
std::shared_ptr<CWallet> const wallet = GetWalletForJSONRPCRequest(request);