Removed obsolete code
authorMarcel Werk <burntime@woltlab.com>
Fri, 22 Jul 2016 13:34:10 +0000 (15:34 +0200)
committerMarcel Werk <burntime@woltlab.com>
Fri, 22 Jul 2016 13:34:17 +0000 (15:34 +0200)
Closes #1923

wcfsetup/install/files/lib/data/user/option/category/UserOptionCategory.class.php

index 4bd65fd3acc094ac24f3796164f45067cdb73c7c..f720d0b5ddc8e87d4caf30cb45b965b5c696762c 100644 (file)
@@ -30,23 +30,6 @@ class UserOptionCategory extends DatabaseObject {
         */
        protected static $databaseTableIndexName = 'categoryID';
        
-       /**
-        * @inheritDoc
-        */
-       public function __construct($categoryID, $row = null, UserOptionCategory $category = null) {
-               if ($categoryID !== null) {
-                       $sql = "SELECT  option_category.*,
-                                       (SELECT COUNT(DISTINCT optionName) FROM wcf".WCF_N."_user_option WHERE categoryName = option_category.categoryName) AS options
-                               FROM    wcf".WCF_N."_user_option_category option_category
-                               WHERE   option_category.categoryID = ?";
-                       $statement = WCF::getDB()->prepareStatement($sql);
-                       $statement->execute([$categoryID]);
-                       $row = $statement->fetchArray();
-               }
-               
-               parent::__construct(null, $row, $category);
-       }
-       
        /**
         * Returns the title of this category.
         *