From b73b118400eba3a3c141dd8e71011f5fc3c0c31f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Fri, 18 Nov 2022 10:53:54 +0100 Subject: [PATCH] Remove PackageArchive::filterUpdateInstructions() The method is unused. --- .../system/package/PackageArchive.class.php | 20 ------------------- 1 file changed, 20 deletions(-) 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. */ -- 2.20.1