[api] remove some unused functions