Remove unneccessary functions.

Signed-off-by: CyberZHG <CyberZHG@gmail.com>