Remove PackageArchive::filterUpdateInstructions()
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 18 Nov 2022 09:53:54 +0000 (10:53 +0100)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 18 Nov 2022 10:00:52 +0000 (11:00 +0100)
The method is unused.

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

index 6c42ec35c5f987701b9082d28d99bedcf09aa00e..685a41e69ac951de22a130dbade9c5c2182f1bd0 100644 (file)
@@ -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.
      */