diff --git a/src/Composer/Autoload/AutoloadGenerator.php b/src/Composer/Autoload/AutoloadGenerator.php index 026f22843..0e21f4bd1 100644 --- a/src/Composer/Autoload/AutoloadGenerator.php +++ b/src/Composer/Autoload/AutoloadGenerator.php @@ -237,11 +237,6 @@ EOF; if (!is_dir($dir)) { continue; } -// $whitelist = sprintf( -// '{%s/%s.+$}', -// preg_quote($dir), -// ($psrType === 'psr-0' && strpos($namespace, '_') === false) ? preg_quote(strtr($namespace, '\\', '/')) : '' -// ); $namespaceFilter = $namespace === '' ? null : $namespace; $classMap = $this->addClassMapCode($filesystem, $basePath, $vendorPath, $dir, $blacklist, $namespaceFilter, $classMap); @@ -544,13 +539,6 @@ AUTOLOAD; protected function getAutoloadRealFile($useClassMap, $useIncludePath, $targetDirLoader, $useIncludeFiles, $vendorPathCode, $appBaseDirCode, $suffix, $useGlobalIncludePath, $prependAutoloader) { - // TODO the class ComposerAutoloaderInit should be revert to a closure - // when APC has been fixed: - // - https://github.com/composer/composer/issues/959 - // - https://bugs.php.net/bug.php?id=52144 - // - https://bugs.php.net/bug.php?id=61576 - // - https://bugs.php.net/bug.php?id=59298 - $file = <<