From a71340621d3f27b81f957852bf60ef924a1afea0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 15 Nov 2022 10:20:26 +0100 Subject: [PATCH] Remove PackageArchive::isValidInstall() This method is unused, instead the existing logic checks if `->getInstallInstructions()` is (non-)empty. --- .../files/lib/system/package/PackageArchive.class.php | 8 -------- 1 file changed, 8 deletions(-) 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. -- 2.20.1