Remove unused unsafe blocks.