From: Matthias Schmidt Date: Wed, 2 Jun 2021 08:12:57 +0000 (+0200) Subject: Remove obsolete private property/method from `MediaImporter` X-Git-Tag: 5.4.0_Beta_1~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8951ae5afe36d69acefc8a1833ab357745237eab;p=GitHub%2FWoltLab%2FWCF.git Remove obsolete private property/method from `MediaImporter` See b3b5e461e0291d25d06f8d2b07bcdc18a4c5a391 --- diff --git a/wcfsetup/install/files/lib/system/importer/MediaImporter.class.php b/wcfsetup/install/files/lib/system/importer/MediaImporter.class.php index fa843cae48..1ea21d4189 100644 --- a/wcfsetup/install/files/lib/system/importer/MediaImporter.class.php +++ b/wcfsetup/install/files/lib/system/importer/MediaImporter.class.php @@ -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; - } }