diff --git a/lib/Migration/RegisterMimeType.php b/lib/Migration/RegisterMimeType.php index 37ca0f7..39d4cf4 100644 --- a/lib/Migration/RegisterMimeType.php +++ b/lib/Migration/RegisterMimeType.php @@ -47,21 +47,6 @@ private function registerForNewFiles() $this->appendToFile($mimetypemappingFile, ['drawio' => ['application/x-drawio'], 'dwb' => ['application/x-drawio-wb']]); } - private function copyIcons() - { - $icons = ['drawio', 'dwb']; - - foreach ($icons as $icon) - { - $source = __DIR__ . '/../../img/' . $icon . '.svg'; - $target = \OC::$SERVERROOT . '/core/img/filetypes/' . $icon . '.svg'; - if (!file_exists($target) || md5_file($target) !== md5_file($source)) - { - copy($source, $target); - } - } - } - public function run(IOutput $output) { $output->info('Registering the mimetype...'); @@ -74,9 +59,6 @@ public function run(IOutput $output) $output->info('The mimetype was successfully registered.'); - $output->info('Copy drawio icons to core/img directory.'); - $this->copyIcons(); - $this->updateJS->run(new StringInput(''), new ConsoleOutput()); }