Removes dead and unused code