remove some unused code

[skip ci]