From 44b98ffa1003112b3b4ed50b01322275f733df5b Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Tue, 11 Feb 2014 22:08:43 +0000
Subject: [PATCH] Issue #2187313 by ParisLiakos: Remove reintroduced category
 code in aggregator .

---
 .../aggregator/aggregator.services.yml        |  8 ----
 .../Access/CategoriesAccessCheck.php          | 45 -------------------
 2 files changed, 53 deletions(-)
 delete mode 100644 core/modules/aggregator/lib/Drupal/aggregator/Access/CategoriesAccessCheck.php

diff --git a/core/modules/aggregator/aggregator.services.yml b/core/modules/aggregator/aggregator.services.yml
index c00b2ac5dd4a..e486b54d2698 100644
--- a/core/modules/aggregator/aggregator.services.yml
+++ b/core/modules/aggregator/aggregator.services.yml
@@ -8,11 +8,3 @@ services:
   plugin.manager.aggregator.processor:
     class: Drupal\aggregator\Plugin\AggregatorPluginManager
     arguments: [processor, '@container.namespaces', '@cache.cache', '@language_manager']
-  access_check.aggregator.categories:
-    class: Drupal\aggregator\Access\CategoriesAccessCheck
-    arguments: ['@database']
-    tags:
-      - { name: access_check, applies_to: _access_aggregator_categories }
-  aggregator.category.storage:
-    class: Drupal\aggregator\CategoryStorageController
-    arguments: ['@database']
diff --git a/core/modules/aggregator/lib/Drupal/aggregator/Access/CategoriesAccessCheck.php b/core/modules/aggregator/lib/Drupal/aggregator/Access/CategoriesAccessCheck.php
deleted file mode 100644
index 791edddc84c7..000000000000
--- a/core/modules/aggregator/lib/Drupal/aggregator/Access/CategoriesAccessCheck.php
+++ /dev/null
@@ -1,45 +0,0 @@
-<?php
-
-/**
- * @file
- * Contains \Drupal\aggregator\Access\CategoriesAccess.
- */
-
-namespace Drupal\aggregator\Access;
-
-use Drupal\Core\Database\Connection;
-use Drupal\Core\Routing\Access\AccessInterface;
-use Drupal\Core\Session\AccountInterface;
-use Symfony\Component\HttpFoundation\Request;
-use Symfony\Component\Routing\Route;
-
-/**
- * Provides an access check for aggregator categories routes.
- */
-class CategoriesAccessCheck implements AccessInterface {
-
-  /**
-   * The database connection.
-   *
-   * @var \Drupal\Core\Database\Connection
-   */
-  protected $database;
-
-  /**
-   * Constructs a CategoriesAccessCheck object.
-   *
-   * @param \Drupal\Core\Database\Connection
-   *   The database connection.
-   */
-  public function __construct(Connection $database) {
-    $this->database = $database;
-  }
-
-  /**
-   * {@inheritdoc}
-   */
-  public function access(Route $route, Request $request, AccountInterface $account) {
-    return $account->hasPermission('access news feeds') && (bool) $this->database->queryRange('SELECT 1 FROM {aggregator_category}', 0, 1)->fetchField() ? static::ALLOW : static::DENY;
-  }
-
-}
-- 
GitLab