[TASK] Remove unused property $CALC_PERMS 93/32693/2
authorWouter Wolters <typo3@wouterwolters.nl>
Tue, 9 Sep 2014 17:56:31 +0000 (19:56 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 15 Sep 2014 20:53:03 +0000 (22:53 +0200)
In InfoModuleController a property $CALC_PERMS is
defined but unused.

Resolves: #61486
Releases: 6.3
Change-Id: Ie1046be148304935bc736faadfe83c9cf8bd5d5f
Reviewed-on: http://review.typo3.org/32693
Reviewed-by: Stefan Froemken <froemken@gmail.com>
Tested-by: Stefan Froemken <froemken@gmail.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/info/Classes/Controller/InfoModuleController.php

index 50d2793..5787654 100644 (file)
@@ -27,11 +27,6 @@ class InfoModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
        /**
         * @todo Define visibility
         */
-       public $CALC_PERMS;
-
-       /**
-        * @todo Define visibility
-        */
        public $pageinfo;
 
        /**
@@ -61,7 +56,6 @@ class InfoModuleController extends \TYPO3\CMS\Backend\Module\BaseScriptClass {
                $this->pageinfo = BackendUtility::readPageAccess($this->id, $this->perms_clause);
                $access = is_array($this->pageinfo);
                if ($this->id && $access || $GLOBALS['BE_USER']->user['admin'] && !$this->id) {
-                       $this->CALC_PERMS = $GLOBALS['BE_USER']->calcPerms($this->pageinfo);
                        if ($GLOBALS['BE_USER']->user['admin'] && !$this->id) {
                                $this->pageinfo = array('title' => '[root-level]', 'uid' => 0, 'pid' => 0);
                        }