Five unused items in src/wallet, one per commit.
DescriptorScriptPubKeyMan::AddDescriptorKey, a private wrapper that
lost its caller in #28333.
COutput::ToString, no callers. It was used by COutput::print(),
which went away with the other print() methods in wallet.
The two CHDChain keypool index members, whose last uses went away with
LegacySPKM in #28710.
WalletDatabase::m_refcount. Only BDB ever maintained it, and BDB went
away in #28710.
The warnings parameter of CreateFromDump, never written, along with
the loop that printed it in wallet-tool. The push_back went away with
the -format option in #31250.