Removing dead assignment