remove unused code

[skip ci]
Some linting

[skip ci]