Remove unused `pending` variable