Remove unused code and resources