[TASK] Remove deprecated getCount in FolderTreeView 18/28318/2
authorWouter Wolters <typo3@wouterwolters.nl>
Wed, 12 Mar 2014 19:14:11 +0000 (20:14 +0100)
committerGeorg Ringer <georg.ringer@gmail.com>
Thu, 13 Mar 2014 05:28:01 +0000 (06:28 +0100)
Resolves: #56840
Releases: 6.2
Change-Id: I7a09565946663fe8ca1e3d1c88c74f5c4ac1975e
Reviewed-on: https://review.typo3.org/28318
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
typo3/sysext/backend/Classes/Tree/View/FolderTreeView.php

index 40d8135..b42fae3 100644 (file)
@@ -515,24 +515,6 @@ class FolderTreeView extends \TYPO3\CMS\Backend\Tree\View\AbstractTreeView {
        /**
         * Counts the number of directories in a file path.
         *
-        * @param string $file File path.
-        * @return integer
-        * @deprecated since TYPO3 6.0, as the folder objects do the counting automatically
-        */
-       public function getCount($file) {
-               GeneralUtility::logDeprecatedFunction();
-               // This generates the directory tree
-               $dirs = GeneralUtility::get_dirs($file);
-               $c = 0;
-               if (is_array($dirs)) {
-                       $c = count($dirs);
-               }
-               return $c;
-       }
-
-       /**
-        * Counts the number of directories in a file path.
-        *
         * @param \TYPO3\CMS\Core\Resource\Folder $folderObject File path.
         * @return integer
         */