From: Tim Düsterhus Date: Fri, 18 Nov 2022 09:53:54 +0000 (+0100) Subject: Remove PackageArchive::filterUpdateInstructions() X-Git-Tag: 6.0.0_Alpha_1~698^2~2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b73b118400eba3a3c141dd8e71011f5fc3c0c31f;p=GitHub%2FWoltLab%2FWCF.git Remove PackageArchive::filterUpdateInstructions() The method is unused. --- diff --git a/wcfsetup/install/files/lib/system/package/PackageArchive.class.php b/wcfsetup/install/files/lib/system/package/PackageArchive.class.php index 6c42ec35c5..685a41e69a 100644 --- a/wcfsetup/install/files/lib/system/package/PackageArchive.class.php +++ b/wcfsetup/install/files/lib/system/package/PackageArchive.class.php @@ -429,26 +429,6 @@ class PackageArchive } } - /** - * Filters update instructions. - */ - protected function filterUpdateInstructions() - { - $validFromVersion = null; - foreach ($this->instructions['update'] as $fromVersion => $update) { - if (Package::checkFromversion($this->package->packageVersion, $fromVersion)) { - $validFromVersion = $fromVersion; - break; - } - } - - if ($validFromVersion === null) { - $this->instructions['update'] = []; - } else { - $this->instructions['update'] = $this->instructions['update'][$validFromVersion]; - } - } - /** * Closes and deletes the tar archive of this package. */