From 680d20355c306e59583b5d566dd609ac8ea3fda8 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 23 Jan 2013 02:30:53 +0100 Subject: [PATCH] Removed obsolete code --- .../system/category/CategoryHandler.class.php | 24 ------------------- 1 file changed, 24 deletions(-) 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. * -- 2.20.1