Removed obsolete code
authorMarcel Werk <burntime@woltlab.com>
Fri, 5 Jun 2020 11:06:12 +0000 (13:06 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 5 Jun 2020 11:06:12 +0000 (13:06 +0200)
wcfsetup/install/files/lib/acp/form/ArticleAddForm.class.php

index 0eb84dadb47c0f6b825319f81ab1fcf0f46e818a..ac1f7dc9910ecdbbdc46f7d46375d8c48d31db31 100644 (file)
@@ -3,7 +3,6 @@ namespace wcf\acp\form;
 use wcf\data\article\category\ArticleCategory;
 use wcf\data\article\Article;
 use wcf\data\article\ArticleAction;
-use wcf\data\category\CategoryNode;
 use wcf\data\category\CategoryNodeTree;
 use wcf\data\label\group\ViewableLabelGroup;
 use wcf\data\language\Language;
@@ -503,12 +502,6 @@ class ArticleAddForm extends AbstractForm {
                
                SmileyCache::getInstance()->assignVariables();
                
-               $accessibleCategoryIDs = ArticleCategory::getAccessibleCategoryIDs();
-               $categoryNodeList = (new CategoryNodeTree('com.woltlab.wcf.article.category'))->getIterator();
-               $categoryNodes = array_filter(iterator_to_array($categoryNodeList), function(CategoryNode $categoryNode) use (&$accessibleCategoryIDs) {
-                       return in_array($categoryNode->categoryID, $accessibleCategoryIDs);
-               });
-               
                WCF::getTPL()->assign([
                        'action' => 'add',
                        'isMultilingual' => $this->isMultilingual,