[api] remove unused variable