[api] Removed an unused variable in group_controller