Skip to content

Commit bb6195e

Browse files
refactor: Remove unused function
1 parent e45b7f2 commit bb6195e

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)