diff --git a/core/lib/Drupal/Core/Extension/ExtensionDiscovery.php b/core/lib/Drupal/Core/Extension/ExtensionDiscovery.php index 0d9283c..177f011 100644 --- a/core/lib/Drupal/Core/Extension/ExtensionDiscovery.php +++ b/core/lib/Drupal/Core/Extension/ExtensionDiscovery.php @@ -57,13 +57,6 @@ class ExtensionDiscovery { const PHP_FUNCTION_PATTERN = '/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/'; /** - * InfoParser instance for parsing .info.yml files. - * - * @var \Drupal\Core\Extension\InfoParser - */ - protected $infoParser; - - /** * Previously discovered files keyed by origin directory and extension type. * * @var array @@ -503,17 +496,4 @@ protected function scanDirectory($dir, $include_tests) { return $files; } - /** - * Returns a parser for .info.yml files. - * - * @return \Drupal\Core\Extension\InfoParser - * The InfoParser instance. - */ - protected function getInfoParser() { - if (!isset($this->infoParser)) { - $this->infoParser = new InfoParser(); - } - return $this->infoParser; - } - }