Remove unnecessary code.