[removeUnused() function Removes unused layout slides (layout slides whose HasDependingSlides is false).]