From 06633dbe2531a380c59811cba31095ad25cdb71c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 2 Oct 2020 10:43:37 +0200 Subject: [PATCH] Remove virtualSession property from SessionHandler This property is always `false`, because it is never written. --- .../lib/system/session/SessionHandler.class.php | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php index 195e98d588..0234c3a88f 100644 --- a/wcfsetup/install/files/lib/system/session/SessionHandler.class.php +++ b/wcfsetup/install/files/lib/system/session/SessionHandler.class.php @@ -141,12 +141,6 @@ class SessionHandler extends SingletonFactory { */ protected $variablesChanged = false; - /** - * virtual session object, null for guests - * @var \wcf\data\session\virtual\SessionVirtual - */ - protected $virtualSession = false; - /** * true if this is a new session * @var boolean @@ -658,17 +652,6 @@ class SessionHandler extends SingletonFactory { // user -> guest (logout) // case 0: - // delete virtual session - if ($this->virtualSession) { - if ($this->isACP) { - $virtualSessionEditor = new ACPSessionVirtualEditor($this->virtualSession); - } - else { - $virtualSessionEditor = new SessionVirtualEditor($this->virtualSession); - } - $virtualSessionEditor->delete(); - } - if ($this->isACP) { $sessionCount = ACPSessionVirtual::countVirtualSessions($this->session->sessionID); } -- 2.20.1