From 5705197f009a5334f1dc40730697fd6bc41b0807 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Fri, 22 Jul 2016 15:34:10 +0200 Subject: [PATCH] Removed obsolete code Closes #1923 --- .../category/UserOptionCategory.class.php | 17 ----------------- 1 file changed, 17 deletions(-) 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. * -- 2.20.1