TheSeer\phpDox\Collector\Project::removeFileReferences PHP Method

removeFileReferences() private method

private removeFileReferences ( string $path )
$path string
    private function removeFileReferences($path)
    {
        foreach ($this->index->findUnitNodesBySrcFile($path) as $node) {
            /** @var $node \DOMElement */
            $fname = $this->xmlDir . '/' . $node->getAttribute('xml');
            if (file_exists($fname)) {
                unlink($fname);
            }
            $node->parentNode->removeChild($node);
        }
    }