Deletes unnecessary code