diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-11-27 11:55:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-27 11:55:20 +0100 |
commit | fb1a92b07df9f485eabd3374c68419f11518f799 (patch) | |
tree | 6e4b8b78e80e7d8977d7a181c4bb04645bf3cb5d /lib/private | |
parent | 8ccb4868762b13adc02f49654a7867b556009a41 (diff) | |
parent | dbb034f903fa59c4cd0f291ac5fc27bbed383e5e (diff) | |
download | nextcloud-server-fb1a92b07df9f485eabd3374c68419f11518f799.tar.gz nextcloud-server-fb1a92b07df9f485eabd3374c68419f11518f799.zip |
Merge pull request #7295 from nextcloud/remove-unused-method
Remove unused mimetype detection method in OC_Image
Diffstat (limited to 'lib/private')
-rw-r--r-- | lib/private/legacy/image.php | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/private/legacy/image.php b/lib/private/legacy/image.php index fe9f054f5d4..a7d702ac032 100644 --- a/lib/private/legacy/image.php +++ b/lib/private/legacy/image.php @@ -63,22 +63,6 @@ class OC_Image implements \OCP\IImage { private $exif; /** - * Get mime type for an image file. - * - * @param string|null $filePath The path to a local image file. - * @return string The mime type if the it could be determined, otherwise an empty string. - */ - static public function getMimeTypeForFile($filePath) { - // exif_imagetype throws "read error!" if file is less than 12 byte - if ($filePath !== null && filesize($filePath) > 11) { - $imageType = exif_imagetype($filePath); - } else { - $imageType = false; - } - return $imageType ? image_type_to_mime_type($imageType) : ''; - } - - /** * Constructor. * * @param resource|string $imageRef The path to a local file, a base64 encoded string or a resource created by |