From: Marcel Werk Date: Fri, 22 Jul 2016 13:34:10 +0000 (+0200) Subject: Removed obsolete code X-Git-Tag: 3.0.0_Beta_1~995 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5705197f009a5334f1dc40730697fd6bc41b0807;p=GitHub%2FWoltLab%2FWCF.git Removed obsolete code Closes #1923 --- diff --git a/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategory.class.php b/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategory.class.php index 4bd65fd3ac..f720d0b5dd 100644 --- a/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategory.class.php +++ b/wcfsetup/install/files/lib/data/user/option/category/UserOptionCategory.class.php @@ -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. *