A good comprehensive test suite helps here too. Cut the fat out, run the tests, if it passes you know that functionality wasn't needed and you can check it in. If it fails, take a look at the failing test and either cut the test out or revert your changes.