Removes useless assignment.