Remove unused code in synthesizer

[ci skip]