[TASK] Remove redundant toArray method on Fluid TemplatePaths 01/48601/2
authorClaus Due <claus@namelesscoder.net>
Sat, 18 Jun 2016 13:25:32 +0000 (15:25 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 20 Jun 2016 19:09:33 +0000 (21:09 +0200)
Inherited method is 100% identical in behavior - overridden
method can be safely removed.

Change-Id: I86cafa119c7d9c4a1ebbbbc578230386073ea1c9
Resolves: #76691
Releases: master
Reviewed-on: https://review.typo3.org/48601
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/fluid/Classes/View/TemplatePaths.php

index ec7d68d..7138934 100644 (file)
@@ -101,18 +101,6 @@ class TemplatePaths extends \TYPO3Fluid\Fluid\View\TemplatePaths
     }
 
     /**
-     * @return array
-     */
-    public function toArray()
-    {
-        return array(
-            self::CONFIG_TEMPLATEROOTPATHS => $this->sanitizePath($this->getTemplateRootPaths()),
-            self::CONFIG_LAYOUTROOTPATHS => $this->sanitizePath($this->getLayoutRootPaths()),
-            self::CONFIG_PARTIALROOTPATHS => $this->sanitizePath($this->getPartialRootPaths())
-        );
-    }
-
-    /**
      * @param string|array $path
      * @return string
      */