Remove unnecessary output in removeCode().