Remove unnecessary code not in use.