When it comes to cleaning up code I have noticed that I have a tendency to comment large chunks of code to preserve them for later. While sometimes this is useful, many times it is completely unnecessary. This is especially true when working in a version controlled environment. Just delete the old. Sounds painful, but odds are, this code will never be used again. When I go back and look at my code later I’m not staring at code that is mostly made of commented sections. If I absolutely need deleted code it’s in the file history. From now on, whenever I encounter past code with a bunch of commented out sections first thing I’ll do is delete them.