bitcoin/bitcoin — pull request #3073 by laanwj (2013-10-09 12:52:27+00:00)
Title: util: remove DataDir caching

This pull may be slightly controversial, but I dare say that `GetDataDir()` is never used on any performance critical paths (and if it is, it is a bug).
It's not that heavy in the first place.
It simplifies the code and removes any `pathCached`/`csPathCached` destruction order problems (if they are still around).