From: Matthias Schmidt Date: Fri, 27 May 2016 20:29:50 +0000 (+0200) Subject: Remove unused erroneous method X-Git-Tag: 3.0.0_Beta_1~1585 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f94df108d0b5bd3034520a5a667e41621b256868;p=GitHub%2FWoltLab%2FWCF.git Remove unused erroneous method --- diff --git a/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php b/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php index a2f63818c1..091ec08cd8 100644 --- a/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php @@ -169,48 +169,6 @@ class PackageUninstallationDispatcher extends PackageInstallationDispatcher { new Uninstaller($targetDir, $files, $deleteEmptyTargetDir, $deleteEmptyDirectories); } - /** - * Checks whether this package is required by other packages. - * If so than a template will be displayed to warn the user that - * a further uninstallation will uninstall also the dependent packages - */ - public static function checkDependencies() { - $packageID = 0; - if (isset($_REQUEST['packageID'])) { - $packageID = intval($_REQUEST['packageID']); - } - - // get packages info - try { - // create object of uninstalling package - $package = new Package($packageID); - } - catch (SystemException $e) { - throw new IllegalLinkException(); - } - - // can not uninstall wcf package. - if ($package->package == 'com.woltlab.wcf') { - throw new IllegalLinkException(); - } - - $dependentPackages = []; - $uninstallAvailable = true; - if ($package->isRequired()) { - // get packages that requires this package - $dependentPackages = self::getPackageDependencies($package->packageID); - foreach ($dependentPackages as $dependentPackage) { - if ($dependentPackage['packageID'] == PACKAGE_ID) { - $uninstallAvailable = false; - break; - } - } - } - - // add this package to queue - self::addQueueEntries($package, $dependentPackages); - } - /** * Adds an uninstall entry to the package installation queue. *