Remove some unused variable assignments.