[api] Removed an unused variable