I searched trough the source to see where functions are used and removed all that were not used anywhere anymore. Tried a compilation afterwards and the client still works fine :). Needs a careful review from a core dev.
cleanup db.cpp/.h after Ultraprune patch
- remove obsolete functions, variables, definitions and such
- cleanup layout (no need to keep that many ugly empty lines IMHO)
I think you're a bit over-eager, and missed the fact that mocking is only used in tests.
Indeed... searched through the client source but didn't search within tests, sorry.