Remove obsolete private property/method from `MediaImporter`
authorMatthias Schmidt <gravatronics@live.com>
Wed, 2 Jun 2021 08:12:57 +0000 (10:12 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Wed, 2 Jun 2021 08:12:57 +0000 (10:12 +0200)
See b3b5e461e0291d25d06f8d2b07bcdc18a4c5a391

wcfsetup/install/files/lib/system/importer/MediaImporter.class.php

index fa843cae481b5f0307d313ffa59c7e4330a23fd4..1ea21d41899bdb1a68fee2230e16eee67d203e13 100644 (file)
@@ -3,11 +3,9 @@
 namespace wcf\system\importer;
 
 use wcf\data\media\Media;
-use wcf\data\media\MediaAction;
 use wcf\data\media\MediaEditor;
 use wcf\system\exception\SystemException;
 use wcf\system\language\LanguageFactory;
-use wcf\system\upload\DefaultUploadFileSaveStrategy;
 use wcf\system\WCF;
 use wcf\util\FileUtil;
 
@@ -26,11 +24,6 @@ class MediaImporter extends AbstractImporter
      */
     protected $className = Media::class;
 
-    /**
-     * @var DefaultUploadFileSaveStrategy
-     */
-    private $saveStrategy;
-
     /**
      * @inheritDoc
      */
@@ -150,16 +143,4 @@ class MediaImporter extends AbstractImporter
 
         return $media->mediaID;
     }
-
-    /**
-     * @return DefaultUploadFileSaveStrategy
-     */
-    private function getSaveStrategy()
-    {
-        if ($this->saveStrategy === null) {
-            $this->saveStrategy = new DefaultUploadFileSaveStrategy(MediaAction::class);
-        }
-
-        return $this->saveStrategy;
-    }
 }