From: Tim Düsterhus Date: Fri, 20 May 2022 12:43:57 +0000 (+0200) Subject: Remove dead stores in RequestHandler::buildRequest() X-Git-Tag: 6.0.0_Alpha_1~1259^2~4 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3172fd7a32bb783204a5ed740d2432a87abb835f;p=GitHub%2FWoltLab%2FWCF.git Remove dead stores in RequestHandler::buildRequest() These array fields are never accessed after being unset. --- 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(