From 3172fd7a32bb783204a5ed740d2432a87abb835f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 20 May 2022 14:43:57 +0200 Subject: [PATCH] Remove dead stores in RequestHandler::buildRequest() These array fields are never accessed after being unset. --- .../files/lib/system/request/RequestHandler.class.php | 6 ------ 1 file changed, 6 deletions(-) diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index 2a3572ab97..d8f20d340b 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -152,9 +152,6 @@ final class RequestHandler extends SingletonFactory 'className' => $routeData['className'], 'controller' => $routeData['controller'], ]; - - unset($routeData['className']); - unset($routeData['controller']); } else { $controller = $routeData['controller']; @@ -206,9 +203,6 @@ final class RequestHandler extends SingletonFactory ) { WCF::setLanguage($routeData['cmsPageLanguageID']); } - - unset($routeData['cmsPageID']); - unset($routeData['cmsPageLanguageID']); } $this->activeRequest = new Request( -- 2.20.1