Remove PackageArchive::isValidInstall()
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 15 Nov 2022 09:20:26 +0000 (10:20 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Tue, 15 Nov 2022 09:39:39 +0000 (10:39 +0100)
This method is unused, instead the existing logic checks if
`->getInstallInstructions()` is (non-)empty.

wcfsetup/install/files/lib/system/package/PackageArchive.class.php

index 44560e711d95aa600bfb6b13c19699920ac34b0c..0362a0ac9d11720b9bae7574cf2f1913fbc3a604 100644 (file)
@@ -468,14 +468,6 @@ class PackageArchive
         @\unlink($this->archive);
     }
 
-    /**
-     * Returns true if the package archive supports a new installation.
-     */
-    public function isValidInstall(): bool
-    {
-        return !empty($this->instructions['install']);
-    }
-
     /**
      * Checks if the new package is compatible with
      * the package that is about to be updated.