src/Range.php
/**
     * Removes all ranges whose start node's node document is the given document.
     *
     * @internal
     */
Removes all ranges whose start node's node document is the given document.
@internal
Removes all ranges whose start node ' s node document is the given document . @internal
public static function prune(Document $document): void
    {
        if (!self::$collection) {
            return;
        }
        foreach (self::$collection as $i => $range) {
            if ($range->startNode->getNodeDocument() === $document) {
                self::$collection->unset($i);
            }
        }
    }
public static function prune ( Document $ document ) : void { if ( ! self :: $ collection ) { return ; } foreach ( self :: $ collection as $ i => $ range ) { if ( $ range -> startNode -> getNodeDocument ( ) === $ document ) { self :: $ collection -> unset ( $ i ) ; } } }
Removes all ranges whose start node's node document is the given document.
Removes all ranges whose start node ' s node document is the given document .