From 64aa5fa9f52f4925c80d0cf3171e2faf0e619f16 Mon Sep 17 00:00:00 2001
From: catch <catch@35733.no-reply.drupal.org>
Date: Thu, 1 Apr 2021 20:10:17 +0100
Subject: [PATCH] Issue #3206358 by longwave, RenatoG: Remove bag
 initialization in SessionManager

---
 core/lib/Drupal/Core/Session/SessionManager.php | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/core/lib/Drupal/Core/Session/SessionManager.php b/core/lib/Drupal/Core/Session/SessionManager.php
index 42a573589123..3eefd39477ae 100644
--- a/core/lib/Drupal/Core/Session/SessionManager.php
+++ b/core/lib/Drupal/Core/Session/SessionManager.php
@@ -89,14 +89,6 @@ public function __construct(RequestStack $request_stack, Connection $connection,
     $this->connection = $connection;
 
     parent::__construct($options, $handler, $metadata_bag);
-
-    // @todo When not using the Symfony Session object, the list of bags in the
-    //   NativeSessionStorage will remain uninitialized. This will lead to
-    //   errors in NativeSessionHandler::loadSession. Remove this after
-    //   https://www.drupal.org/node/2229145, when we will be using the Symfony
-    //   session object (which registers an attribute bag with the
-    //   manager upon instantiation).
-    $this->bags = [];
   }
 
   /**
-- 
GitLab