From 00b88c250ca825b678ab9256716065a8db404bca Mon Sep 17 00:00:00 2001
From: catch <catch@35733.no-reply.drupal.org>
Date: Fri, 28 Jan 2022 22:39:50 +0000
Subject: [PATCH] Issue #3258918 by Spokje, longwave: Remove deprecated
 'cache.null' service

---
 core/lib/Drupal/Core/Update/UpdateServiceProvider.php | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/core/lib/Drupal/Core/Update/UpdateServiceProvider.php b/core/lib/Drupal/Core/Update/UpdateServiceProvider.php
index 98f04f8f2c00..4b204f2fdf16 100644
--- a/core/lib/Drupal/Core/Update/UpdateServiceProvider.php
+++ b/core/lib/Drupal/Core/Update/UpdateServiceProvider.php
@@ -6,7 +6,6 @@
 use Drupal\Core\DependencyInjection\ServiceModifierInterface;
 use Drupal\Core\DependencyInjection\ServiceProviderInterface;
 use Symfony\Component\DependencyInjection\Compiler\PassConfig;
-use Symfony\Component\DependencyInjection\Definition;
 use Symfony\Component\DependencyInjection\Reference;
 
 /**
@@ -18,11 +17,6 @@ class UpdateServiceProvider implements ServiceProviderInterface, ServiceModifier
    * {@inheritdoc}
    */
   public function register(ContainerBuilder $container) {
-    $definition = new Definition('Drupal\Core\Cache\NullBackend', ['null']);
-    $definition->setDeprecated('drupal/core', '8.8.0', 'The "%service_id%\" service is deprecated. While updating Drupal all caches use \Drupal\Core\Update\UpdateBackend. See https://www.drupal.org/node/3066407');
-    $definition->setPublic(TRUE);
-    $container->setDefinition('cache.null', $definition);
-
     // Decorate the cache factory in order to use
     // \Drupal\Core\Update\UpdateBackend while running updates.
     $container
-- 
GitLab