summaryrefslogtreecommitdiffstats
path: root/lib/private/helper.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2015-12-18 15:23:05 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2015-12-18 15:23:05 +0100
commit36cc0528e3cfd29a4bc7e4b72d6f2b243845a7cc (patch)
tree4638753c2d4698c2677231834b28aabc5dd28309 /lib/private/helper.php
parenta743047e8228fb4973d99e0101dec5e6c39f81b9 (diff)
parentb460bde7c6c3c70fc0010133c00f1e76a952fa48 (diff)
downloadnextcloud-server-36cc0528e3cfd29a4bc7e4b72d6f2b243845a7cc.tar.gz
nextcloud-server-36cc0528e3cfd29a4bc7e4b72d6f2b243845a7cc.zip
Merge pull request #21288 from owncloud/deprecated_helper_mimetypes
Remove deprecated OC_Helper mimetype functions
Diffstat (limited to 'lib/private/helper.php')
-rw-r--r--lib/private/helper.php45
1 files changed, 0 insertions, 45 deletions
diff --git a/lib/private/helper.php b/lib/private/helper.php
index b8f9f6ec138..64952903712 100644
--- a/lib/private/helper.php
+++ b/lib/private/helper.php
@@ -84,18 +84,6 @@ class OC_Helper {
}
/**
- * get path to icon of file type
- * @param string $mimetype mimetype
- * @return string the url
- *
- * Returns the path to the image of this file type.
- * @deprecated 8.2.0 Use \OC::$server->getMimeTypeDetector()->mimeTypeIcon($mimetype)
- */
- public static function mimetypeIcon($mimetype) {
- return \OC::$server->getMimeTypeDetector()->mimeTypeIcon($mimetype);
- }
-
- /**
* get path to preview of file
* @param string $path path
* @return string the url
@@ -282,39 +270,6 @@ class OC_Helper {
}
/**
- * Try to guess the mimetype based on filename
- *
- * @param string $path
- * @return string
- * @deprecated 8.2.0 Use \OC::$server->getMimeTypeDetector()->detectPath($path)
- */
- static public function getFileNameMimeType($path) {
- return \OC::$server->getMimeTypeDetector()->detectPath($path);
- }
-
- /**
- * Get a secure mimetype that won't expose potential XSS.
- *
- * @param string $mimeType
- * @return string
- * @deprecated 8.2.0 Use \OC::$server->getMimeTypeDetector()->getSecureMimeType($mimeType)
- */
- static function getSecureMimeType($mimeType) {
- return \OC::$server->getMimeTypeDetector()->getSecureMimeType($mimeType);
- }
-
- /**
- * get the mimetype form a data string
- *
- * @param string $data
- * @return string
- * @deprecated 8.2.0 Use \OC::$server->getMimeTypeDetector()->detectString($data)
- */
- static function getStringMimeType($data) {
- return \OC::$server->getMimeTypeDetector()->detectString($data);
- }
-
- /**
* detect if a given program is found in the search PATH
*
* @param string $name