Remove unused code and variables.