Remove unnecessary code.

[Skip ci]