remove duplicate function

[ci skip]