As an aside, I've seen a number of patterns used to avoid deleting code and I hate every one of them. If you use a VCS such as #git there isn't a good reason to leave unused code in the codebase ( unless you are making a consumable library). I especially hate preprocessor ifs. If it doesn't get built, it's just a distraction.
