From c021146fea9fe65352fbc2c7d5fac248fde94441 Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Mon, 10 Aug 2015 10:40:18 +0100
Subject: [PATCH] Issue #2548301 by fago: Remove dead code from
 AnnotatedClassDiscovery

---
 .../Drupal/Core/Plugin/Discovery/AnnotatedClassDiscovery.php    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/lib/Drupal/Core/Plugin/Discovery/AnnotatedClassDiscovery.php b/core/lib/Drupal/Core/Plugin/Discovery/AnnotatedClassDiscovery.php
index b7a2dfdbcd36..6bc3bbbf6831 100644
--- a/core/lib/Drupal/Core/Plugin/Discovery/AnnotatedClassDiscovery.php
+++ b/core/lib/Drupal/Core/Plugin/Discovery/AnnotatedClassDiscovery.php
@@ -76,7 +76,7 @@ protected function getAnnotationReader() {
       $reader = parent::getAnnotationReader();
 
       // Add the Core annotation classes like @Translation.
-      $reader->addNamespace('Drupal\Core\Annotation', array(dirname(dirname(__DIR__)) . '/Annotation'));
+      $reader->addNamespace('Drupal\Core\Annotation');
       $this->annotationReader = $reader;
     }
     return $this->annotationReader;
-- 
GitLab