Remove unused erroneous method
authorMatthias Schmidt <gravatronics@live.com>
Fri, 27 May 2016 20:29:50 +0000 (22:29 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Fri, 27 May 2016 20:29:50 +0000 (22:29 +0200)
wcfsetup/install/files/lib/system/package/PackageUninstallationDispatcher.class.php

index a2f63818c12175c9b7bd88dc6831df2ee4498fc0..091ec08cd8d2730b7a8d5b131c9a860a6537fc3e 100644 (file)
@@ -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.
         *