Remove unnecessary debug codes.