removes unused code