Remove dead stores in RequestHandler::buildRequest()
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 20 May 2022 12:43:57 +0000 (14:43 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 20 May 2022 12:58:46 +0000 (14:58 +0200)
These array fields are never accessed after being unset.

wcfsetup/install/files/lib/system/request/RequestHandler.class.php

index 2a3572ab973640a4bd5d74b9ad1717d993d611b7..d8f20d340b18f3c49b529eb9755439c6bdde8322 100644 (file)
@@ -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(