From dfd4a699b8d5fe9851ffdbc1c71d99d5ea6d4ba2 Mon Sep 17 00:00:00 2001 From: Alexander Ebert Date: Sun, 14 Oct 2012 01:27:28 +0200 Subject: [PATCH] Removed unnecessary uninstall()-method Fixes #560 --- ...upOptionPackageInstallationPlugin.class.php | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/wcfsetup/install/files/lib/system/package/plugin/UserGroupOptionPackageInstallationPlugin.class.php b/wcfsetup/install/files/lib/system/package/plugin/UserGroupOptionPackageInstallationPlugin.class.php index 1d92fa3589..27843a86a7 100644 --- a/wcfsetup/install/files/lib/system/package/plugin/UserGroupOptionPackageInstallationPlugin.class.php +++ b/wcfsetup/install/files/lib/system/package/plugin/UserGroupOptionPackageInstallationPlugin.class.php @@ -29,24 +29,6 @@ class UserGroupOptionPackageInstallationPlugin extends AbstractOptionPackageInst */ public static $reservedTags = array('name', 'optiontype', 'defaultvalue', 'admindefaultvalue', 'validationpattern', 'showorder', 'categoryname', 'selectoptions', 'enableoptions', 'permissions', 'options', 'attrs', 'cdata'); - /** - * Deletes group-option-categories and/or group-options which where installed by the package. - */ - public function uninstall() { - // Delete value-entries using categories or options - // which will be deleted. - $sql = "DELETE FROM wcf".WCF_N."_user_group_option_value - WHERE optionID IN ( - SELECT optionID - FROM wcf".WCF_N."_user_group_option - WHERE packageID = ? - )"; - $statement = WCF::getDB()->prepareStatement($sql); - $statement->execute(array($this->installation->getPackageID())); - - parent::uninstall(); - } - /** * @see wcf\system\package\plugin\AbstractOptionPackageInstallationPlugin::saveOption() */ -- 2.20.1