remove dead/unused code in walletdb.cpp

- closes #5021