Remove unused code segments.