Deleting unnecessary code