remove old unused code in compiler