remove dead/unused code in walletdb.cpp

- closes #5021
Merge pull request #5022

c375b5c remove dead/unused code in walletdb.cpp (Philip Kaufmann)