diff --git a/lib/Twig/TemplateIterator.php b/lib/Twig/TemplateIterator.php deleted file mode 100644 index 5672963d5..000000000 --- a/lib/Twig/TemplateIterator.php +++ /dev/null @@ -1,45 +0,0 @@ - - */ -class Twig_TemplateIterator implements IteratorAggregate -{ - private $loader; - - public function __construct(Twig_LoaderInterface $loader) - { - $this->loader = $loader; - - $templates = array(); - if ($loader instanceof Twig_Loader_Filesystem) { - foreach ($loader->getNamespaces() as $namespace) { - $paths = $loader->getPaths($namespace); - foreach ($paths as $path) { - foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator(realpath($path)), RecursiveIteratorIterator::LEAVES_ONLY) as $file) { - if (Twig_Loader_Filesystem::MAIN_NAMESPACE === $namespace) { - $templates[] = substr($file->getPathname(), strlen($path) + 1); - } else { - $templates[] = '@'.$namespace.'/'.$file->getPathname(); - } - } - } - } - } - - print_r($templates); - } - - public function getIterator() - { - } -}