aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Preview/MP3.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/private/Preview/MP3.php')
-rw-r--r--lib/private/Preview/MP3.php20
1 files changed, 1 insertions, 19 deletions
diff --git a/lib/private/Preview/MP3.php b/lib/private/Preview/MP3.php
index 804ec7fbcd9..05cd7c0edb1 100644
--- a/lib/private/Preview/MP3.php
+++ b/lib/private/Preview/MP3.php
@@ -61,24 +61,6 @@ class MP3 extends Provider {
}
}
- return $this->getNoCoverThumbnail();
+ return false;
}
-
- /**
- * Generates a default image when the file has no cover
- *
- * @return bool|\OCP\IImage false if the default image is missing or invalid
- */
- private function getNoCoverThumbnail() {
- $icon = \OC::$SERVERROOT . '/core/img/filetypes/audio.svg';
-
- if(!file_exists($icon)) {
- return false;
- }
-
- $image = new \OC_Image();
- $image->loadFromFile($icon);
- return $image->valid() ? $image : false;
- }
-
}