Removes some unused code.