[api] remove unused variable to please code quality check