[ci skip] fixed typo
fix wrong type declaration.
remove needless function