Remove unnecessary "pending" code