Delete needless codes.