Skip to content

Commit 717fd58

Browse files
committed
Merge #15625: refactor: Remove unused function
bb6195e refactor: Remove unused function (practicalswift) Pull request description: Last use removed in cad5dd2. Tree-SHA512: f65bf8f77b9aadbfba39bd80076a4d773eddf685a8a90ef2db549552a3d0ccd426ce3920b2f71954703f64d840fa88349957996d1f64a9c4d3f27a99b4da70e7
2 parents 2607d96 + bb6195e commit 717fd58

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/wallet/rpcwallet.cpp

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3881,19 +3881,6 @@ UniValue sethdseed(const JSONRPCRequest& request)
38813881
return NullUniValue;
38823882
}
38833883

3884-
void AddKeypathToMap(const CWallet* pwallet, const CKeyID& keyID, std::map<CPubKey, KeyOriginInfo>& hd_keypaths)
3885-
{
3886-
CPubKey vchPubKey;
3887-
if (!pwallet->GetPubKey(keyID, vchPubKey)) {
3888-
return;
3889-
}
3890-
KeyOriginInfo info;
3891-
if (!pwallet->GetKeyOrigin(keyID, info)) {
3892-
throw JSONRPCError(RPC_INTERNAL_ERROR, "Internal keypath is broken");
3893-
}
3894-
hd_keypaths.emplace(vchPubKey, std::move(info));
3895-
}
3896-
38973884
UniValue walletprocesspsbt(const JSONRPCRequest& request)
38983885
{
38993886
std::shared_ptr<CWallet> const wallet = GetWalletForJSONRPCRequest(request);

0 commit comments

Comments
 (0)