From: Tim Düsterhus Date: Tue, 15 Nov 2022 09:20:26 +0000 (+0100) Subject: Remove PackageArchive::isValidInstall() X-Git-Tag: 6.0.0_Alpha_1~719^2~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a71340621d3f27b81f957852bf60ef924a1afea0;p=GitHub%2FWoltLab%2FWCF.git Remove PackageArchive::isValidInstall() This method is unused, instead the existing logic checks if `->getInstallInstructions()` is (non-)empty. --- diff --git a/wcfsetup/install/files/lib/system/package/PackageArchive.class.php b/wcfsetup/install/files/lib/system/package/PackageArchive.class.php index 44560e711d..0362a0ac9d 100644 --- a/wcfsetup/install/files/lib/system/package/PackageArchive.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageArchive.class.php @@ -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.