From: Marcel Werk Date: Wed, 23 Jan 2013 01:30:53 +0000 (+0100) Subject: Removed obsolete code X-Git-Tag: 2.0.0_Beta_1~548 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=680d20355c306e59583b5d566dd609ac8ea3fda8;p=GitHub%2FWoltLab%2FWCF.git Removed obsolete code --- diff --git a/wcfsetup/install/files/lib/system/category/CategoryHandler.class.php b/wcfsetup/install/files/lib/system/category/CategoryHandler.class.php index 1cc40ce4af..4456a8b084 100644 --- a/wcfsetup/install/files/lib/system/category/CategoryHandler.class.php +++ b/wcfsetup/install/files/lib/system/category/CategoryHandler.class.php @@ -66,30 +66,6 @@ class CategoryHandler extends SingletonFactory { return $categories; } - /** - * Returns a list of accessible categories. - * - * @param string $objectType - * @param array $permissions filters categories by given permissions - * @return array comma separated category ids - */ - public function getAccessibleCategoryIDs($objectType, array $permissions) { - $categoryIDs = array(); - foreach ($this->getCategories($objectType) as $category) { - $result = true; - $categoryPermissions = CategoryPermissionHandler::getInstance()->getPermissions($category); - foreach ($permissions as $permission) { - $result = $result && !empty($categoryPermissions[$permission]); - } - - if ($result) { - $categoryIDs[] = $category->categoryID; - } - } - - return $categoryIDs; - } - /** * Returns the category object with the given category id. *